1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

scripts: updated to cleaner logic for global variables

This commit is contained in:
2025-02-17 04:19:49 +01:00
parent 7322a068c2
commit c7e33b6162
7 changed files with 17 additions and 20 deletions

View File

@@ -3,7 +3,7 @@
# Status bar module for disk space
# $1 should be drive mountpoint
[ -z "$STATUSBAR_DISK" ] && disk="/home" || disk="$STATUSBAR_DISK"
disk=${STATUSBAR_DISK:-/home}
[ ! -z "$1" ] && disk="$1"