mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 12:15:06 +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 "$@"
|