list can take additional argument
This commit is contained in:
parent
cca442aa2a
commit
868fe0d80f
|
@ -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 $@
|
||||||
|
|
Reference in New Issue