refactor!: import modules recursively
This commit is contained in:
parent
f9fd542206
commit
9567cce5fa
35 changed files with 227 additions and 178 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue