refactor!: import modules recursively

This commit is contained in:
Moritz Böhme 2023-05-11 17:33:14 +02:00
parent f9fd542206
commit 9567cce5fa
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
35 changed files with 227 additions and 178 deletions

View file

@ -5,7 +5,7 @@ WALLPAPERS=$(find "$WALLPAPERS_PATH" -type f,l)
function help() {
echo "Usage:"
echo -e " wallpaper [OPTIONS] [PATH]"
echo -e " wallpaper [OPTIONS] [PATH]"
echo ""
echo "Options:"
echo -e " -h, --help \n\t Show this help message and exit"
@ -60,12 +60,12 @@ done
set -- "${POSITIONAL[@]}" # restore positional arguments
if [[ $# -gt 1 ]]; then
help
exit 1
help
exit 1
fi
if [[ $# -eq 1 ]]; then
WALLPAPER="$1"
WALLPAPER="$1"
fi
if [[ -z ${WALLPAPER+x} ]]; then