From b4c0b8974f844fa8676d5bc517e8679429274d68 Mon Sep 17 00:00:00 2001 From: ivaquero Date: Mon, 19 Feb 2024 18:14:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20fix=20a=20bug=20in=20upox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oxidizer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oxidizer.sh b/oxidizer.sh index 9a5282ae..77f5f893 100644 --- a/oxidizer.sh +++ b/oxidizer.sh @@ -11,6 +11,7 @@ declare -A OX_OXYGEN=( [oxwz]=${OXIDIZER}/defaults/wezterm.lua [oxpm]=${OXIDIZER}/plugins/ox-macos.sh [oxpd]=${OXIDIZER}/plugins/ox-debians.sh + [oxpr]=${OXIDIZER}/plugins/ox-rehats.sh [oxpw]=${OXIDIZER}/plugins/ox-windows.sh [oxpb]=${OXIDIZER}/plugins/ox-brew.sh [oxps]=${OXIDIZER}/plugins/ox-scoop.sh @@ -126,7 +127,7 @@ upox() { git fetch origin master git reset --hard origin/master - if [ ! -d "${OXIDIZER}"/plugins ]; then + if [[ ! -d "${OXIDIZER}"/plugins ]]; then printf "\n\nCloning Oxidizer Plugins...\n" git clone --depth=1 https://github.com/ivaquero/oxplugins.git "${OXIDIZER}"/plugins else @@ -138,7 +139,7 @@ upox() { cd "${OXIDIZER}" || exit ox_change=$(git diff defaults.sh) - if [ -n "$ox_change" ]; then + if [[ -n "$ox_change" ]]; then printf "\n\nDefaults changed, don't forget to update your custom.sh accordingly...\n" printf "Compare the difference using 'edf oxd'" fi