Fix erros

This commit is contained in:
quitaxd 2024-04-21 19:02:38 +03:00
parent 517e785dd0
commit 2f951ff31b
2 changed files with 4 additions and 7 deletions

View File

@ -10,7 +10,7 @@ fi
git clone https://github.com/dylanaraps/neofetch ~/.qpkg/neofetch
cd ~/.pkg/neofetch
cd ~/.qpkg/neofetch
make PREFIX=$HOME/.local/bin install

9
qpkg
View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
OLDPWD="$PWD"
if [ -d /tmp/qarch ]; then
rm -rf /tmp/qarch
fi
@ -17,9 +19,4 @@ if [ "$1" == "" ]; then
echo "Usage: qpkg <pkgname>"
fi
curl 'http://git.vern.cc/quitaxd/qpkg/raw/branch/main/pkgs/$1.sh' | bash
if ! [ "$?" == "0" ]; then
echo "Package $1 not found."
exit 1
fi
curl http://git.vern.cc/quitaxd/qpkg/raw/branch/main/pkgs/$1.sh | bash