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
|
||||
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=
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue