diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/encode-aerial-lite | 3 | ||||
| -rwxr-xr-x | bin/fetch-aerial-recent | 2 | ||||
| -rwxr-xr-x | bin/install-aerial-videos | 3 |
3 files changed, 5 insertions, 3 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" diff --git a/bin/fetch-aerial-recent b/bin/fetch-aerial-recent index 23f4a57..90a5a95 100755 --- a/bin/fetch-aerial-recent +++ b/bin/fetch-aerial-recent @@ -100,7 +100,7 @@ echo echo "Masters ready: $(du -sh "$MASTER_DIR" | cut -f1)" if [[ "$ENCODE" -eq 1 ]]; then - SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)" ENCODER="$SCRIPT_DIR/encode-aerial-lite" if [[ ! -x "$ENCODER" ]]; then ENCODER="$(command -v encode-aerial-lite || true)" diff --git a/bin/install-aerial-videos b/bin/install-aerial-videos index 5e6b313..33cecf6 100755 --- a/bin/install-aerial-videos +++ b/bin/install-aerial-videos @@ -7,7 +7,8 @@ # install-aerial-videos --from-dir DIR # copy already-lite .mp4 files set -euo pipefail -ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SCRIPT_PATH="$(readlink -f "${BASH_SOURCE[0]}")" +ROOT="$(cd "$(dirname "$SCRIPT_PATH")/.." && pwd)" VIDEO_DIR="${VIDEO_DIR:-$HOME/Videos/Screensavers/Aerial}" MODE="fetch" FROM="" |
