diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-10-31 01:04:29 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-10-31 01:04:29 +0400 |
commit | c1afb64bcbd234d7e239f6366c5d800d87ab2b08 (patch) | |
tree | 6013205ae82ab5a871cceec76aafdbc0ee3cf61b | |
parent | 664e9f72246567ff96834678e555539ad630fa37 (diff) |
swall bug fix: finds only png files
-rwxr-xr-x | scripts/swall | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/swall b/scripts/swall index b023534..9c2a338 100755 --- a/scripts/swall +++ b/scripts/swall @@ -70,7 +70,7 @@ if [ -n "${input}" ]; then fi if [ -n "${waldir}" ]; then - image=$(find "${waldir}" -iregex '.*\.jpeg\|.*\.jpng\|.*\.png' 2>/dev/null \ + image=$(find "${waldir}" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' 2>/dev/null \ | shuf -n 1 ) fi |