mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 10:39:45 +00:00
fixed intendation
This commit is contained in:
parent
1c59e59309
commit
fade2d5bbd
1 changed files with 9 additions and 9 deletions
18
lock.sh
18
lock.sh
|
@ -58,14 +58,14 @@ postlock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rec_get_random() {
|
rec_get_random() {
|
||||||
dir="$1"
|
dir="$1"
|
||||||
if [ ! -d "$dir" ]; then
|
if [ ! -d "$dir" ]; then
|
||||||
user_input="$dir"
|
user_input="$dir"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
dir=($dir/*)
|
dir=($dir/*)
|
||||||
dir=${dir[RANDOM % ${#dir[@]}]}
|
dir=${dir[RANDOM % ${#dir[@]}]}
|
||||||
rec_get_random "$dir"
|
rec_get_random "$dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ case "$1" in
|
||||||
echo " -u --update"
|
echo " -u --update"
|
||||||
echo " to update image cache, you should do this before using any other options"
|
echo " to update image cache, you should do this before using any other options"
|
||||||
echo " Ex: ./lock.sh -u path/to/image.png when image.png is custom background"
|
echo " Ex: ./lock.sh -u path/to/image.png when image.png is custom background"
|
||||||
echo " Or you can use ./lock.sh -u path/to/imagedir and a random file will be selected"
|
echo " Or you can use ./lock.sh -u path/to/imagedir and a random file will be selected"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo " -l --lock"
|
echo " -l --lock"
|
||||||
|
|
Loading…
Reference in a new issue