Update portzap-{clone,pull}
This commit is contained in:
parent
3b1f3ca1d6
commit
93af7e94ec
2 changed files with 4 additions and 4 deletions
|
@ -8,8 +8,8 @@ gitdir=$2
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
if [ -e "${gitdir}/.git" ]; then
|
if [ -e "${gitdir}/.git" ]; then
|
||||||
echo "${gitdir} already exists."
|
echo "[-] ${gitdir} exists."
|
||||||
echo "Try 'portzap pull' instead."
|
echo "[-] Try 'portzap pull'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
umask u=rwX,g=rwX,o=
|
umask u=rwX,g=rwX,o=
|
||||||
|
|
|
@ -12,7 +12,7 @@ if [ -e "${gitdir}/.git" ]; then
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
git pull --rebase origin hardenedbsd/main
|
git pull --rebase origin hardenedbsd/main
|
||||||
else
|
else
|
||||||
echo "A copy of the hardenedbsd ports tree wasn't found."
|
echo "[-] ${gitdir} is not a valid git repository."
|
||||||
echo "Try 'portzap clone' instead."
|
echo "[-] Try 'portzap clone'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue