diff --git a/Documents/bin/youtube-dl b/Documents/bin/youtube-dl new file mode 100755 index 0000000000000000000000000000000000000000..98402811a9cdaef22f7f550c32aec002f04d26dd --- /dev/null +++ b/Documents/bin/youtube-dl @@ -0,0 +1,17 @@ +#!/bin/sh +set -eu + +if [ "${1:-}" = "-u" ] +then + exec podman image pull registry.shore.co.il/youtube-dl +fi + +exec podman run \ + -it \ + --rm \ + --userns keep-id \ + -w "$PWD" \ + -v "$PWD:$PWD" \ + -v "$HOME/.cache:/tmp/.cache" \ + registry.shore.co.il/youtube-dl \ + "$@"