mirror of
https://github.com/helixarch/debtap
synced 2025-05-10 03:40:06 +02:00
fix: typo in pkgbuild directory variable
This typo make creating/removing the PKGBUILD directory fails due to wrong variable expansion
This commit is contained in:
parent
3ffcc0b74b
commit
27a9ff5863
8
debtap
8
debtap
@ -3441,8 +3441,8 @@ echo -e "\n}" >> PKGBUILD
|
|||||||
pkgname="$(grep '^pkgname=' PKGBUILD | sed s'/^pkgname=//')"
|
pkgname="$(grep '^pkgname=' PKGBUILD | sed s'/^pkgname=//')"
|
||||||
if [[ $output == set ]]; then
|
if [[ $output == set ]]; then
|
||||||
pkgbuild_location="$(dirname "$outputdirectory/$pkgname-PKGBUILD")"
|
pkgbuild_location="$(dirname "$outputdirectory/$pkgname-PKGBUILD")"
|
||||||
rm -rf "$pkgbuilt_location" 2> /dev/null
|
rm -rf "$pkgbuild_location" 2> /dev/null
|
||||||
mkdir "$pkgbuilt_location" 2> /dev/null
|
mkdir "$pkgbuild_location" 2> /dev/null
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
echo -e "${red}Error: Cannot create PKGBUILD directory to output directory, permission denied. Removing leftover files and exiting...${NC}"
|
echo -e "${red}Error: Cannot create PKGBUILD directory to output directory, permission denied. Removing leftover files and exiting...${NC}"
|
||||||
rm -rf "$working_directory"
|
rm -rf "$working_directory"
|
||||||
@ -3458,8 +3458,8 @@ if [[ $output == set ]]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
pkgbuild_location="$(dirname ""$(dirname "$package_with_full_path")"/$pkgname-PKGBUILD")"
|
pkgbuild_location="$(dirname ""$(dirname "$package_with_full_path")"/$pkgname-PKGBUILD")"
|
||||||
rm -rf "$pkgbuilt_location" 2> /dev/null
|
rm -rf "$pkgbuild_location" 2> /dev/null
|
||||||
mkdir "$pkgbuilt_location" 2> /dev/null
|
mkdir "$pkgbuild_location" 2> /dev/null
|
||||||
if [[ $? != 0 ]]; then
|
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}"
|
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"
|
rm -rf "$working_directory"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user