diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d436dce..6484936 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,8 +21,8 @@ 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}" + cat ${ZSHRC_PATH} + UPDATE_ALIAS_SEARCH_STR="curl -fsSL https://raw.githubusercontent.com/andmpel/MacOS-All-In-One-Update-Script/HEAD/update-all.sh | zsh" if ! grep -qxF "${UPDATE_ALIAS_SEARCH_STR}" "${ZSHRC_PATH}"; then echo "Error: Test Failed!!!" exit 1 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 <