diff options
| author | epoch <epoch@enzo.thebackupbox.net> | 2021-10-25 07:49:36 +0000 | 
|---|---|---|
| committer | epoch <epoch@enzo.thebackupbox.net> | 2021-10-25 07:49:36 +0000 | 
| commit | 86480f1eca8820cf67c95359780c62c3a89d4485 (patch) | |
| tree | 7fbb40e85dcf14a6bddba0d5ce1cd4408bebdb44 | |
| parent | 34181aafcfbfeb434d5ff0ebe4bf1d368ac4936c (diff) | |
| download | uritools-86480f1eca8820cf67c95359780c62c3a89d4485.tar.gz uritools-86480f1eca8820cf67c95359780c62c3a89d4485.zip | |
escape the single quotes from the env vars that get exported. stuff with x-face data is good for debugging.. derped on a non-empty check of arguments as multiple quoted strings instead of just one.
| -rwxr-xr-x | uristart | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -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 | 
