From 1bf9f124d34802b46fab1d77e93b2cd82375cb29 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sat, 13 Jul 2024 21:54:13 -0500 Subject: [PATCH] finish conversion --- setup.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/setup.sh b/setup.sh index de03c46..124d92a 100755 --- a/setup.sh +++ b/setup.sh @@ -25,7 +25,6 @@ if [ ! -d "$LINUXTOOLBOXDIR/mybash" ]; then fi fi - cd "$LINUXTOOLBOXDIR/mybash" || exit command_exists() { @@ -117,13 +116,13 @@ installDepend() { exit 1 fi ${AUR_HELPER} --noconfirm -S ${DEPENDENCIES} - elif [[ $PACKAGER == "nala" ]]; then + elif [ "$PACKAGER" = "nala" ]; then ${SUDO_CMD} ${PACKAGER} install -y ${DEPENDENCIES} - elif [[ $PACKAGER == "emerge" ]]; then + elif [ "$PACKAGER" = "emerge" ]; then ${SUDO_CMD} ${PACKAGER} -v app-shells/bash app-shells/bash-completion app-arch/tar app-editors/neovim sys-apps/bat app-text/tree app-text/multitail app-misc/fastfetch - elif [[ $PACKAGER == "xbps-install" ]]; then + elif [ "$PACKAGER" = "xbps-install" ]; then ${SUDO_CMD} ${PACKAGER} -v ${DEPENDENCIES} - elif [[ $PACKAGER == "nix-env" ]]; then + elif [ "$PACKAGER" = "nix-env" ]; then ${SUDO_CMD} ${PACKAGER} -iA nixos.bash nixos.bash-completion nixos.gnutar nixos.neovim nixos.bat nixos.tree nixos.multitail nixos.fastfetch else ${SUDO_CMD} ${PACKAGER} install -yq ${DEPENDENCIES} @@ -226,5 +225,4 @@ if linkConfig; then echo "${GREEN}Done!\nrestart your shell to see the changes.${RC}" else echo "${RED}Something went wrong!${RC}" -fi - +fi \ No newline at end of file