From 8739d6980c7c642b26c32c112cde487044c17d00 Mon Sep 17 00:00:00 2001 From: helixarch Date: Tue, 5 Aug 2025 19:19:46 +0300 Subject: [PATCH] Add files via upload --- debtap | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debtap b/debtap index d8fb8af..3b5d0a1 100755 --- a/debtap +++ b/debtap @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -Version=3.6.2 +Version=3.6.3 # Defining colors and bold letters lightgreen='\e[1;32m' @@ -67,7 +67,7 @@ if [[ $output == set ]]; then if [[ "${optionsarray[$i+1]}" == "" ]]; then echo -e "${red}Error: You haven't specified an output directory${NC}"; exit 1; elif [ -d "${optionsarray[$i+1]}" ]; then - outputdirectory="${optionsarray[$i+1]}" + outputdirectory="$(realpath "${optionsarray[$i+1]}")" else echo -e "${red}Error: No output directory or invalid output directory${NC}"; exit 1; fi @@ -3465,11 +3465,11 @@ if [[ -e pkgbuildinstallations1 ]] || [[ -e pkgbuildinstallations2 ]] || [[ -e p fi fi echo -e "\n}" >> PKGBUILD - +echo "$output_directory" # Moving PKGBUILD (and .INSTALL, if it exists) and announcing its creation pkgname="$(grep '^pkgname=' PKGBUILD | sed s'/^pkgname=//')" if [[ $output == set ]]; then - pkgbuild_location="$(dirname "$outputdirectory/$pkgname-PKGBUILD")" + pkgbuild_location="$outputdirectory/$pkgname-PKGBUILD" rm -rf "$pkgbuild_location" 2> /dev/null mkdir "$pkgbuild_location" 2> /dev/null if [[ $? != 0 ]]; then @@ -3486,7 +3486,7 @@ if [[ $output == set ]]; then echo -e "${lightgreen}==>${NC} ${bold}PKGBUILD is now located in${normal} ${lightblue}\"$pkgbuild_location\"${NC} ${bold}and ready to be edited${normal}" fi else - pkgbuild_location="$(dirname ""$(dirname "$package_with_full_path")"/$pkgname-PKGBUILD")" + pkgbuild_location=""$(dirname "$package_with_full_path")"/$pkgname-PKGBUILD" rm -rf "$pkgbuild_location" 2> /dev/null mkdir "$pkgbuild_location" 2> /dev/null if [[ $? != 0 ]]; then