Detect script path properly with symlink support

This commit is contained in:
Peter Cai 2023-05-10 10:57:18 -04:00
parent e93d14e8cd
commit 4bb590e919
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
# Always execute in the script's directory
pushd ${0%/*}
pushd "$(dirname "$(realpath "$0")")"
repo="https://f-droid.org/repo/"
prebuilt_libs=()