From 767c0821ee0a1ad893efe9b5bc8e84f5629f8416 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:43:06 +0100 Subject: scripts: removed bashisms --- .local/bin/scheme | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.local/bin/scheme') diff --git a/.local/bin/scheme b/.local/bin/scheme index a4b9b38..128d8f2 100755 --- a/.local/bin/scheme +++ b/.local/bin/scheme @@ -12,17 +12,17 @@ main () { } set_scheme () { - if [[ $1 == "dark" ]]; then - GTK_THEME=$(<"$XDG_CONFIG_HOME"/scheme/gtk-theme-dark) - QT_THEME=$(<"$XDG_CONFIG_HOME"/scheme/qt-theme-dark) - TERM_THEME=$(<"$XDG_CONFIG_HOME"/scheme/term-theme-dark) + if [ "$1" = "dark" ]; then + GTK_THEME=$(cat "$XDG_CONFIG_HOME/scheme/gtk-theme-dark") + QT_THEME=$(cat "$XDG_CONFIG_HOME/scheme/qt-theme-dark") + TERM_THEME=$(cat "$XDG_CONFIG_HOME/scheme/term-theme-dark") FZF_COLOR=dark PREFER_DARK="true" PREFER_DARK_STR="prefer-dark" else - GTK_THEME=$(<"$XDG_CONFIG_HOME"/scheme/gtk-theme-light) - QT_THEME=$(<"$XDG_CONFIG_HOME"/scheme/qt-theme-light) - TERM_THEME=$(<"$XDG_CONFIG_HOME"/scheme/term-theme-light) + GTK_THEME=$(cat "$XDG_CONFIG_HOME/scheme/gtk-theme-light") + QT_THEME=$(cat "$XDG_CONFIG_HOME/scheme/qt-theme-light") + TERM_THEME=$(cat "$XDG_CONFIG_HOME/scheme/term-theme-light") FZF_COLOR=light PREFER_DARK="false" PREFER_DARK_STR="prefer-light" -- cgit v1.2.3-70-g09d2