summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-10-31 01:04:29 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-10-31 01:04:29 +0400
commitc1afb64bcbd234d7e239f6366c5d800d87ab2b08 (patch)
tree6013205ae82ab5a871cceec76aafdbc0ee3cf61b
parent664e9f72246567ff96834678e555539ad630fa37 (diff)
swall bug fix: finds only png files
-rwxr-xr-xscripts/swall2
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