Commit | Line | Data |
---|---|---|
31df3021 SK |
1 | #! /bin/sh |
2 | ||
3 | case "$1" in | |
4 | '') dir="$DIR_WALLPAPERS";; | |
5 | *) dir="$1";; | |
6 | esac | |
7 | ||
8 | # XXX Apparently injecting a filepath with {} is bad: https://github.com/koalaman/shellcheck/wiki/SC2156 | |
9 | #find "$dir" -type f -exec bash -c 'feh --bg-scale "{}"; read' \; | |
10 | find "$dir" -type f -exec bash -c 'feh --bg-scale "$1"; read' shell '{}' \; |