aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAUTplayed <fips.hem@gmail.com>2017-12-10 23:55:43 +0100
committerAUTplayed <fips.hem@gmail.com>2017-12-10 23:55:43 +0100
commitfade2d5bbdda4f8254d79add2efc96611267d4bf (patch)
tree14c2ff6e67a20fd2f833a145555bd03a1ee0fd2c
parent1c59e5930959ee0f77cce679b193494ebcaf2be2 (diff)
fixed intendation
-rwxr-xr-xlock.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/lock.sh b/lock.sh
index 7f1b0ac..7aebb9b 100755
--- a/lock.sh
+++ b/lock.sh
@@ -58,14 +58,14 @@ postlock() {
}
rec_get_random() {
- dir="$1"
- if [ ! -d "$dir" ]; then
- user_input="$dir"
- return
- fi
- dir=($dir/*)
- dir=${dir[RANDOM % ${#dir[@]}]}
- rec_get_random "$dir"
+ dir="$1"
+ if [ ! -d "$dir" ]; then
+ user_input="$dir"
+ return
+ fi
+ dir=($dir/*)
+ dir=${dir[RANDOM % ${#dir[@]}]}
+ rec_get_random "$dir"
}
@@ -109,7 +109,7 @@ case "$1" in
echo " -u --update"
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 " 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 " -l --lock"