mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 10:45:08 +03:00
12 lines
297 B
Bash
12 lines
297 B
Bash
|
#!/usr/bin/env bash
|
||
|
self="${BASH_SOURCE[0]}"
|
||
|
if test -L "$self"; then
|
||
|
prefix="$(dirname "$self")"
|
||
|
suffix="$(dirname $(readlink $self))"
|
||
|
LIBEXEC="$(cd $prefix/$suffix && pwd)"
|
||
|
else
|
||
|
LIBEXEC="$(cd "$(dirname "$self")" && pwd)"
|
||
|
fi
|
||
|
source "$LIBEXEC/activate"
|
||
|
exec "$LIBEXEC"/youtube-dl.py "$@"
|