diff --git a/README.md b/README.md index 7e3142f..d51de72 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,7 @@ scoop install git-remote-codecommit To install using a shell script: ```sh -curl https://raw.githubusercontent.com/gembaadvantage/git-remote-codecommit/master/scripts/install > install -chmod 700 install -./install +curl https://raw.githubusercontent.com/gembaadvantage/git-remote-codecommit/main/scripts/install | sh ``` ## Quick Start diff --git a/scripts/install b/scripts/install index b4c43d6..d613471 100755 --- a/scripts/install +++ b/scripts/install @@ -70,7 +70,7 @@ download() { VERSION="$(wget -q https://api.github.com/repos/gembaadvantage/git-remote-codecommit/releases/latest -O - 2>&1 | grep "tag_name" | cut -d'"' -f4)" fi - echo "Attempting to download git-remote-codecommit v${VERSION}..." + echo "Attempting to download git-remote-codecommit ${VERSION}..." PACKAGE_TYPE="tar.gz" if [ "${OS}" == "windows" ]; then @@ -96,7 +96,7 @@ install() { local extract_dir="$DOWNLOAD_DIR/git-remote-codecommit-$VERSION" mkdir -p $extract_dir tar xf "$GRC_FILE" -C "${extract_dir}" - sudo cp "${extract_dir}/git-remote-codecommit" "/usr/local/bin/git-remote-codecommit" + cp "${extract_dir}/git-remote-codecommit" "/usr/local/bin/git-remote-codecommit" echo "Installed git-remote-codecommit to /usr/local/bin" }