Update portzap-{clone,pull}

This commit is contained in:
0x1eef 2024-04-17 14:32:26 -03:00
parent 3b1f3ca1d6
commit 93af7e94ec
2 changed files with 4 additions and 4 deletions

View file

@ -8,8 +8,8 @@ gitdir=$2
##
# main
if [ -e "${gitdir}/.git" ]; then
echo "${gitdir} already exists."
echo "Try 'portzap pull' instead."
echo "[-] ${gitdir} exists."
echo "[-] Try 'portzap pull'"
exit 1
fi
umask u=rwX,g=rwX,o=

View file

@ -12,7 +12,7 @@ if [ -e "${gitdir}/.git" ]; then
cd "${gitdir}"
git pull --rebase origin hardenedbsd/main
else
echo "A copy of the hardenedbsd ports tree wasn't found."
echo "Try 'portzap clone' instead."
echo "[-] ${gitdir} is not a valid git repository."
echo "[-] Try 'portzap clone'"
exit 1
fi