diff options
author | katherine <shmibs@shmibbles.me> | 2017-03-07 13:41:52 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2017-03-07 13:41:52 -0700 |
commit | 9676f43ffad81ac477ae3989e6b2b1e129f85d98 (patch) | |
tree | c08eca44c160f69d5e221ce415e559e0bb265762 /.config/init/funcs | |
parent | 5aba9de367932be46aa471c71076d9e623d5abce (diff) | |
download | dotfiles-9676f43ffad81ac477ae3989e6b2b1e129f85d98.tar.gz |
preliminary support for light backgrounds
haven't managed to make one that felt ok yet, but still nice to have the
option
Diffstat (limited to '.config/init/funcs')
-rwxr-xr-x | .config/init/funcs/make-gif | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/init/funcs/make-gif b/.config/init/funcs/make-gif index e100650..1864e63 100755 --- a/.config/init/funcs/make-gif +++ b/.config/init/funcs/make-gif @@ -38,7 +38,7 @@ local t="" # really annoying, but no other good way to do this if [[ $hasgsic ]]; then - while getopts s:t:f:w:bhn:g opt; do + while getopts :s:t:f:w:bhn:g opt; do case "$opt" in s) [[ ! $(echo $OPTARG | grep -oE "$timepat") ]] \ @@ -69,11 +69,11 @@ if [[ $hasgsic ]]; then ;; g) gsic=true ;; h) usage ;; - [?]) usage ;; + [?]) usage "unrecognised option" ;; esac done else - while getopts s:t:f:w:bhn: opt; do + while getopts :s:t:f:w:bhn: opt; do case "$opt" in s) [[ ! $(echo $OPTARG | grep -oE "$timepat") ]] \ @@ -103,7 +103,7 @@ else strack=$OPTARG ;; h) usage ;; - [?]) usage ;; + [?]) usage "unrecognised option" ;; esac done fi |