summaryrefslogtreecommitdiff
path: root/home/scripts/greet.sh
diff options
context:
space:
mode:
Diffstat (limited to 'home/scripts/greet.sh')
-rwxr-xr-xhome/scripts/greet.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/home/scripts/greet.sh b/home/scripts/greet.sh
index 00b6be5..cb2aae5 100755
--- a/home/scripts/greet.sh
+++ b/home/scripts/greet.sh
@@ -4,12 +4,12 @@ source log.sh "greet.sh"
pick_greeting() {
path="$1"
greetings=("$1"/*)
- greeting="${greetings[$RANDOM % ${#greetings[@]}]}"
- echo "$greeting"
+ greeting_path="${greetings[$RANDOM % ${#greetings[@]}]}"
+ echo "$greeting_path"
}
GREETINGS_LIST="$XDG_CONFIG_HOME/zsh/greetings"
-if [ ! -d "$GREETINGS_LIST" ]; then
+if [ ! -d "$GREETINGS_LIST" ]; then
log DEBUG "no such file $GREETINGS_LIST"
exit 0
fi