@@ -40,9 +40,9 @@ if [ "${AOPT}" = loader ]; then
4040 ZI_CONFIG_DIR=" ${XDG_CONFIG_HOME:- ${HOME} / .config} /zi"
4141 command mkdir -p " ${ZI_CONFIG_DIR} "
4242 if command -v curl > /dev/null 2>&1 ; then
43- command curl -fsSL https://raw.githubusercontent.com/z-shell/zi- src/main/lib/zsh/init.zsh -o " ${ZI_CONFIG_DIR} /init.zsh"
43+ command curl -fsSL https://raw.githubusercontent.com/z-shell/src/main/lib/zsh/init.zsh -o " ${ZI_CONFIG_DIR} /init.zsh"
4444 elif command -v wget > /dev/null 2>&1 ; then
45- command wget -qO " ${ZI_CONFIG_DIR} /init.zsh" https://raw.githubusercontent.com/z-shell/zi- src/main/lib/zsh/init.zsh
45+ command wget -qO " ${ZI_CONFIG_DIR} /init.zsh" https://raw.githubusercontent.com/z-shell/src/main/lib/zsh/init.zsh
4646 fi
4747 command chmod go-w " ${ZI_CONFIG_DIR} " && command chmod a+x " ${ZI_CONFIG_DIR} /init.zsh"
4848 # shellcheck disable=SC2016
9191 printf ' %s\n' " [1;34m▓▒░[0m Installing [1;36m(z-shell/zi)[1;33m plugin manager[0m at [1;35m${ZI_HOME} /${ZI_BIN_DIR_NAME} [0m"
9292 { git clone --progress --depth=1 --branch " ${BOPT} " https://github.com/z-shell/zi.git " ${ZI_BIN_DIR_NAME} " \
9393 2>&1 | { /tmp/zi/git-process-output.zsh || cat; }; } 2> /dev/null
94- if [ -d " ${ZI_HOME} /${ZI_BIN_DIR_NAME} " ]; then
94+ if [ -d " ${ZI_HOME} /${ZI_BIN_DIR_NAME} " ] && [ -f " ${ZI_HOME} / ${ZI_BIN_DIR_NAME} /zi.zsh " ] ; then
9595 printf ' %s\n' " [1;34m▓▒░[0m Successfully installed at [1;32m${ZI_HOME} /${ZI_BIN_DIR_NAME} [0m" .
9696 else
9797 printf ' %s\n' " [1;31m▓▒░[0m Something went wrong, couldn't install ZI at [1;33m${ZI_HOME} /${ZI_BIN_DIR_NAME} [0m"
@@ -181,7 +181,7 @@ ZPMOD_PROFILE() {
181181 _zpmod_sh=" ${_script_dir} /install_zpmod.sh"
182182 else
183183 _zpmod_sh=" ${WORKDIR} /install_zpmod.sh"
184- _zpmod_url=" https://raw.githubusercontent.com/z-shell/zi- src/main/lib/sh/install_zpmod.sh"
184+ _zpmod_url=" https://raw.githubusercontent.com/z-shell/src/main/lib/sh/install_zpmod.sh"
185185 if command -v curl > /dev/null 2>&1 ; then
186186 command curl -fsSL " ${_zpmod_url} " -o " ${_zpmod_sh} "
187187 elif command -v wget > /dev/null 2>&1 ; then
0 commit comments