commit 8c3e587db65197622ae0786462449dc9af36a468 parent 2a3be788b00b8eb2602394efe8beeafba8ce8300 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 21 May 2020 08:36:56 +0200 Check args at start Diffstat:
M | .local/bin/youtube-dl-music | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.local/bin/youtube-dl-music b/.local/bin/youtube-dl-music @@ -1,6 +1,11 @@ #!/bin/sh set -ue +if [ $# -ne 1 ]; then + printf 'usage: %s <url>\n' "${0##*/}" + exit 1 +fi + musicroot="/home/music/" printf "use torsocks? [Y/n] "