From 27a9ff58634e9b5e0822f72f062eee3c7edb05c8 Mon Sep 17 00:00:00 2001 From: Federico Francescon Date: Fri, 2 May 2025 14:51:35 +0200 Subject: [PATCH] fix: typo in pkgbuild directory variable This typo make creating/removing the PKGBUILD directory fails due to wrong variable expansion --- debtap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debtap b/debtap index 4518a7a..71aea20 100755 --- a/debtap +++ b/debtap @@ -3441,8 +3441,8 @@ echo -e "\n}" >> PKGBUILD pkgname="$(grep '^pkgname=' PKGBUILD | sed s'/^pkgname=//')" if [[ $output == set ]]; then pkgbuild_location="$(dirname "$outputdirectory/$pkgname-PKGBUILD")" - rm -rf "$pkgbuilt_location" 2> /dev/null - mkdir "$pkgbuilt_location" 2> /dev/null + rm -rf "$pkgbuild_location" 2> /dev/null + mkdir "$pkgbuild_location" 2> /dev/null if [[ $? != 0 ]]; then echo -e "${red}Error: Cannot create PKGBUILD directory to output directory, permission denied. Removing leftover files and exiting...${NC}" rm -rf "$working_directory" @@ -3458,8 +3458,8 @@ if [[ $output == set ]]; then fi else pkgbuild_location="$(dirname ""$(dirname "$package_with_full_path")"/$pkgname-PKGBUILD")" - rm -rf "$pkgbuilt_location" 2> /dev/null - mkdir "$pkgbuilt_location" 2> /dev/null + rm -rf "$pkgbuild_location" 2> /dev/null + mkdir "$pkgbuild_location" 2> /dev/null if [[ $? != 0 ]]; then echo -e "${red}Error: Cannot create PKGBUILD directory to the same directory as .deb package, permission denied. Removing leftover files and exiting...${NC}" rm -rf "$working_directory"