12 lines
266 B
Bash
Executable file
12 lines
266 B
Bash
Executable file
#!/bin/sh
|
|
set -ex
|
|
gitdir=$1
|
|
umask=rwX,g=rwX,o=
|
|
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."
|
|
exit 1
|
|
fi
|