diff options
author | mynacol | 2021-05-16 17:18:57 +0200 |
---|---|---|
committer | mynacol | 2021-05-16 17:18:57 +0200 |
commit | 5f0419b3ef4011be12a9cab7769a3f9943266b6f (patch) | |
tree | 298264a91d97b4392dcfeed5db7e5c59022a3b04 | |
parent | 097b7cee499d99aaf55784017242c981641ca89b (diff) | |
download | aur-5f0419b3ef4011be12a9cab7769a3f9943266b6f.tar.gz |
Initialize variables before use
-rw-r--r-- | dark-theme.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dark-theme.sh b/dark-theme.sh index 0fd7f32ad5ef..d20e029805b6 100644 --- a/dark-theme.sh +++ b/dark-theme.sh @@ -17,6 +17,10 @@ set -euo pipefail IFS=$'\n\t' +# intialize all variables +SWAYSOCK=${SWAYSOCK:-} +XDG_SESSION_TYPE=${XDG_SESSION_TYPE:-} + CURRENT=$(gsettings get org.gnome.desktop.interface gtk-theme) if [[ $1 == "dark" ]]; then |