Move into script dirs before running

This commit is contained in:
2021-12-30 05:47:11 -05:00
parent 47bb4cbbe5
commit ef832cc112
2 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,9 @@ fail() {
which lb &>/dev/null || fail "This script requires live-build"
sudo -n true &>/dev/null || fail "The user running this script must have sudo privileges."
idir=$( dirname $0 )
pushd ${idir} &>/dev/null
isofilename="pvc-installer_$(date +%Y-%m-%d).iso"
deployusername="deploy"
@ -168,3 +171,5 @@ fi
echo
echo "Build completed. ISO file: ${isofilename}"
popd &>/dev/null