Skip to content

Commit

Permalink
fix(utils/check_colorscheme): replace [[ with [
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninzalo committed Nov 2, 2024
1 parent 3f9e271 commit 68adc06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/check_colorscheme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ CURRENT_FILE=$2
COLORSCHEME=$(tmux show-option -gqv @${PLUGIN_NAME}-colorscheme)
CUSTOM_COLORSCHEME_PATH=$(tmux show-option -gqv @${PLUGIN_NAME}-custom-colorscheme-path)

if [[ -n "$CUSTOM_COLORSCHEME_PATH" ]]; then
if [[ -f "$CUSTOM_COLORSCHEME_PATH" ]]; then
if [ -n "$CUSTOM_COLORSCHEME_PATH" ]; then
if [ -f "$CUSTOM_COLORSCHEME_PATH" ]; then
tmux set-option -g @${PLUGIN_NAME}-colorscheme "$CUSTOM_COLORSCHEME_PATH"
exit 0
else
tmux display-message "Custom colorscheme file not found: $CUSTOM_COLORSCHEME_PATH"
fi
fi

if [[ -f "${CURRENT_FILE}/themes/${COLORSCHEME}.conf" ]]; then
if [ -f "${CURRENT_FILE}/themes/${COLORSCHEME}.conf" ]; then
tmux set-option -g @${PLUGIN_NAME}-colorscheme "$CURRENT_FILE/themes/${COLORSCHEME}.conf"
exit 0
else
Expand Down

0 comments on commit 68adc06

Please sign in to comment.