about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <[email protected]>2019-10-17 00:04:01 +0100
committerArchie Hilton (thytom) <[email protected]>2019-10-17 00:04:01 +0100
commitf9d4f6266d047a13dfbbd8ff1df7f74c4241fe01 (patch)
tree5584019f46eb30da8c47dc770fe7b5acd7f6544a
parentUpdated print_usage() to only use one echo command. (diff)
downloadsmart-wallpaper-f9d4f6266d047a13dfbbd8ff1df7f74c4241fe01.tar.gz
smart-wallpaper-f9d4f6266d047a13dfbbd8ff1df7f74c4241fe01.tar.bz2
smart-wallpaper-f9d4f6266d047a13dfbbd8ff1df7f74c4241fe01.zip
Fixed issue where script would crash without a framerate input.
-rwxr-xr-xsmart-wallpaper2
1 files changed, 1 insertions, 1 deletions
diff --git a/smart-wallpaper b/smart-wallpaper
index 2089958..0ddc2cc 100755
--- a/smart-wallpaper
+++ b/smart-wallpaper
@@ -163,7 +163,7 @@ if [ "$randomize" == false ]; then
   nighttimewallpaper=$(find $input_nighttimewallpaper -type f | shuf -n 1)
 fi
 
-if [[ -z $framerate ]]; then
+if [[ ! $framerate = '' ]]; then
 	delay_flag="--delay $(expr 100 / $framerate)"
 fi