From fb14446aba391235282c01f5091b25f11f1b4026 Mon Sep 17 00:00:00 2001 From: Vatsal Gupta <40350810+gvatsal60@users.noreply.github.com> Date: Sun, 27 Oct 2024 04:36:54 +0000 Subject: [PATCH] Fixed Action Failure --- .github/workflows/test.yaml | 6 +++--- install.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d436dce..8fcd3e6 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,9 +21,9 @@ jobs: zsh install.sh || { echo "The script exited with an error."; exit 1; } echo "The script executed successfully." ZSHRC_PATH="${HOME}/.zshrc" - source ${ZSHRC_PATH} - UPDATE_ALIAS_SEARCH_STR="curl -fsSL https://raw.githubusercontent.com/andmpel/MacOS-All-In-One-Update-Script/HEAD/update-all.sh | ${SHELL}" - if ! grep -qxF "${UPDATE_ALIAS_SEARCH_STR}" "${ZSHRC_PATH}"; then + cat ${ZSHRC_PATH} + SEARCH_STR="curl -fsSL https://raw.githubusercontent.com/andmpel/MacOS-All-In-One-Update-Script/HEAD/update-all.sh | zsh" + if ! grep -qxF "${SEARCH_STR}" "${ZSHRC_PATH}"; then echo "Error: Test Failed!!!" exit 1 fi diff --git a/install.sh b/install.sh index 9cea4f4..a8c16c6 100755 --- a/install.sh +++ b/install.sh @@ -16,7 +16,7 @@ set -e readonly FILE_NAME="update-all.sh" readonly UPDATE_SCRIPT_SOURCE_URL="https://raw.githubusercontent.com/andmpel/MacOS-All-In-One-Update-Script/HEAD/${FILE_NAME}" -readonly UPDATE_ALIAS_SEARCH_STR="curl -fsSL ${UPDATE_SCRIPT_SOURCE_URL} | ${SHELL}" +readonly UPDATE_ALIAS_SEARCH_STR="curl -fsSL ${UPDATE_SCRIPT_SOURCE_URL} | zsh" UPDATE_ALIAS_SOURCE_STR=$( cat <