summaryrefslogtreecommitdiff
path: root/scrshot
diff options
context:
space:
mode:
Diffstat (limited to 'scrshot')
-rwxr-xr-xscrshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/scrshot b/scrshot
index e400b8e..6ff9d9e 100755
--- a/scrshot
+++ b/scrshot
@@ -22,8 +22,8 @@ while getopts "wxd:s:o:" o; do case "${o}" in
x)
SCRSH="maim"
;;
- d) DARG="$OPTARG" ;;
- s) SARG="$OPTARG" ;;
+ d) DARG=${DARG:+"$DARG "}"$OPTARG" ;;
+ s) SARG=${SARG:+"$SARG "}"$OPTARG" ;;
o) FILENAME="$OPTARG" ;;
*) printhelp ;;
esac done