list can take additional argument

This commit is contained in:
southerntofu 2020-04-28 12:59:40 +02:00
parent cca442aa2a
commit 868fe0d80f
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ list_cmd() {
r="$1" r="$1"
rhex="$(from_url "$r")" rhex="$(from_url "$r")"
if [ ! -f $db/."$rhex".secret ]; then if [ ! -f $db/."$rhex".secret ]; then
# Repository not found echo "ERROR: Repository $r not found"
exit 1 exit 1
fi fi
for u in "$db"/"$rhex".*; do for u in "$db"/"$rhex".*; do
@ -271,7 +271,7 @@ case $command in
help_cmd help_cmd
;; ;;
"list") "list")
list_cmd list_cmd $@
;; ;;
"add") "add")
add_cmd $@ add_cmd $@