Skip to content

Commit

Permalink
always run in project root
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Oct 26, 2023
1 parent a319e0e commit ffdace4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ while getopts u:p:n:d:i:s:vh opt; do
done
shift $((OPTIND - 1))

# go to project root
cd "$(realpath "$(dirname "$(readlink -f "$0")")")"

# download
iso_file=$(basename "${iso_url}")
if [[ ! -f ${iso_file} ]]; then
Expand Down

0 comments on commit ffdace4

Please sign in to comment.