summaryrefslogtreecommitdiff
path: root/uristart
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
committerepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
commit3c5cd5e68278f82cc071623419e1a205c6fee38b (patch)
tree72d8dc4493e399d7ea6cc094826e527ef9e4c564 /uristart
parent62817acef7618bd5d6e77ffabb39aabe33f5a37c (diff)
parentc38649558142ee7a02c176f373120f417633b022 (diff)
downloaduritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.tar.gz
uritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.zip
Merge branch 'master' of ssh://git.thebackupbox.net/uritools
Diffstat (limited to 'uristart')
-rwxr-xr-xuristart4
1 files changed, 3 insertions, 1 deletions
diff --git a/uristart b/uristart
index a5c3e63..2b0d7f2 100755
--- a/uristart
+++ b/uristart
@@ -10,6 +10,8 @@ ASKUSER="choose"
check=dont
+eval "$(printf "%s\n" "$1" | uricut | sed 's/^/export URI/;s/'\''/'\''\\'\'''\''/;s/: /='\''/g;s/$/'\''/')"
+
uristart_config=~/.config/uristart.conf
usage() {
@@ -43,7 +45,7 @@ if [ "$verbose" ];then
echo "uristart: other:" "$@" >&2
fi
-if [ ! "$@" ];then
+if [ ! "$*" ];then
usage >&2 #to stderr because it is an error to not have any extra args to process
exit 1
fi