Skip to content

Commit ae8f888

Browse files
committed
fix(install.sh): verify zi.zsh exists after clone, not just directory
1 parent b91e7e2 commit ae8f888

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/sh/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ else
9191
printf '%s\n' "▓▒░ Installing (z-shell/zi) plugin manager at ${ZI_HOME}/${ZI_BIN_DIR_NAME}"
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' "▓▒░ Successfully installed at ${ZI_HOME}/${ZI_BIN_DIR_NAME}".
9696
else
9797
printf '%s\n' "▓▒░ Something went wrong, couldn't install ZI at ${ZI_HOME}/${ZI_BIN_DIR_NAME}"

0 commit comments

Comments
 (0)