diff --git a/README.md b/README.md index c04af4f9..6dac74fa 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ Talisman to be present, not only in your existing git repositories, but also in As a pre-commit hook: ``` -bash -c "$(curl --silent https://thoughtworks.github.io/talisman/scripts/install.bash)" +bash -c "$(curl --silent https://raw.githubusercontent.com/thoughtworks/talisman/main/global_install_scripts/install.bash)" ``` OR @@ -106,7 +106,7 @@ bash -c "$(curl --silent https://thoughtworks.github.io/talisman/scripts/install As a pre-push hook: ``` -bash -c "$(curl --silent https://thoughtworks.github.io/talisman/scripts/install.bash)" -- pre-push +bash -c "$(curl --silent https://raw.githubusercontent.com/thoughtworks/talisman/main/global_install_scripts/install.bash)" -- pre-push ``` @@ -126,7 +126,7 @@ If you choose to set the `$PATH` later, please export TALISMAN\_HOME=$HOME/.tali ```bash # Download the talisman installer script -curl https://thoughtworks.github.io/talisman/install.sh > ~/install-talisman.sh +curl https://raw.githubusercontent.com/thoughtworks/talisman/main/install.sh > ~/install-talisman.sh chmod +x ~/install-talisman.sh ``` @@ -528,13 +528,13 @@ Run the following command on your terminal to uninstall talisman globally from y For pre-commit hook: ``` -bash -c "$(curl --silent https://thoughtworks.github.io/talisman/scripts/uninstall.bash)" +bash -c "$(curl --silent https://raw.githubusercontent.com/thoughtworks/talisman/main/global_install_scripts/uninstall.bash)" ``` For pre-push hook: ``` -bash -c "$(curl --silent https://thoughtworks.github.io/talisman/scripts/uninstall.bash)" -- pre-push +bash -c "$(curl --silent https://raw.githubusercontent.com/thoughtworks/talisman/main/global_install_scripts/uninstall.bash)" -- pre-push ``` This will diff --git a/global_install_scripts/install.bash b/global_install_scripts/install.bash index 15160f3e..6f2424aa 100755 --- a/global_install_scripts/install.bash +++ b/global_install_scripts/install.bash @@ -177,6 +177,7 @@ function run() { sed -e "s@\${TALISMAN_BINARY}@"${TALISMAN_SETUP_DIR}/${TALISMAN_BINARY_NAME}"@" ${TEMP_DIR}/talisman_hook_script.bash >${TALISMAN_HOOK_SCRIPT_PATH} chmod +x ${TALISMAN_HOOK_SCRIPT_PATH} add_talisman_home_as $TALISMAN_SETUP_DIR + sudo ln -s "${TALISMAN_SETUP_DIR}/${TALISMAN_BINARY_NAME}" /usr/local/bin/talisman } function setup_git_template_talisman_hook() {