diff options
| author | Archie Hilton (thytom) <[email protected]> | 2019-10-17 00:04:01 +0100 |
|---|---|---|
| committer | Archie Hilton (thytom) <[email protected]> | 2019-10-17 00:04:01 +0100 |
| commit | f9d4f6266d047a13dfbbd8ff1df7f74c4241fe01 (patch) | |
| tree | 5584019f46eb30da8c47dc770fe7b5acd7f6544a | |
| parent | Updated print_usage() to only use one echo command. (diff) | |
| download | smart-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-x | smart-wallpaper | 2 |
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 |