summaryrefslogtreecommitdiff
path: root/bin/encode-aerial-lite
diff options
context:
space:
mode:
Diffstat (limited to 'bin/encode-aerial-lite')
-rwxr-xr-xbin/encode-aerial-lite3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/encode-aerial-lite b/bin/encode-aerial-lite
index 56621e0..d4b9c22 100755
--- a/bin/encode-aerial-lite
+++ b/bin/encode-aerial-lite
@@ -7,7 +7,8 @@
# SRC_DIR=/path/to/4k DST_DIR=~/Videos/Screensavers/Aerial encode-aerial-lite
set -euo pipefail
-ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
+SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")"
+ROOT="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)"
# shellcheck source=../lib/detect-vaapi.sh
source "$ROOT/lib/detect-vaapi.sh"