Add files via upload

This commit is contained in:
helixarch 2025-08-05 19:19:46 +03:00 committed by GitHub
parent a7bdd07e29
commit 8739d6980c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
debtap
View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
Version=3.6.2 Version=3.6.3
# Defining colors and bold letters # Defining colors and bold letters
lightgreen='\e[1;32m' lightgreen='\e[1;32m'
@ -67,7 +67,7 @@ if [[ $output == set ]]; then
if [[ "${optionsarray[$i+1]}" == "" ]]; then if [[ "${optionsarray[$i+1]}" == "" ]]; then
echo -e "${red}Error: You haven't specified an output directory${NC}"; exit 1; echo -e "${red}Error: You haven't specified an output directory${NC}"; exit 1;
elif [ -d "${optionsarray[$i+1]}" ]; then elif [ -d "${optionsarray[$i+1]}" ]; then
outputdirectory="${optionsarray[$i+1]}" outputdirectory="$(realpath "${optionsarray[$i+1]}")"
else else
echo -e "${red}Error: No output directory or invalid output directory${NC}"; exit 1; echo -e "${red}Error: No output directory or invalid output directory${NC}"; exit 1;
fi fi
@ -3465,11 +3465,11 @@ if [[ -e pkgbuildinstallations1 ]] || [[ -e pkgbuildinstallations2 ]] || [[ -e p
fi fi
fi fi
echo -e "\n}" >> PKGBUILD echo -e "\n}" >> PKGBUILD
echo "$output_directory"
# Moving PKGBUILD (and .INSTALL, if it exists) and announcing its creation # Moving PKGBUILD (and .INSTALL, if it exists) and announcing its creation
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="$outputdirectory/$pkgname-PKGBUILD"
rm -rf "$pkgbuild_location" 2> /dev/null rm -rf "$pkgbuild_location" 2> /dev/null
mkdir "$pkgbuild_location" 2> /dev/null mkdir "$pkgbuild_location" 2> /dev/null
if [[ $? != 0 ]]; then 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}" echo -e "${lightgreen}==>${NC} ${bold}PKGBUILD is now located in${normal} ${lightblue}\"$pkgbuild_location\"${NC} ${bold}and ready to be edited${normal}"
fi fi
else 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 rm -rf "$pkgbuild_location" 2> /dev/null
mkdir "$pkgbuild_location" 2> /dev/null mkdir "$pkgbuild_location" 2> /dev/null
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then