Skip to content

Commit 120e0b7

Browse files
authored
chore: remove default use of sudo in install script (#4)
1 parent e3bb55c commit 120e0b7

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ scoop install git-remote-codecommit
2828
To install using a shell script:
2929

3030
```sh
31-
curl https://raw.githubusercontent.com/gembaadvantage/git-remote-codecommit/master/scripts/install > install
32-
chmod 700 install
33-
./install
31+
curl https://raw.githubusercontent.com/gembaadvantage/git-remote-codecommit/main/scripts/install | sh
3432
```
3533

3634
## Quick Start

scripts/install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ download() {
7070
VERSION="$(wget -q https://api.github.com/repos/gembaadvantage/git-remote-codecommit/releases/latest -O - 2>&1 | grep "tag_name" | cut -d'"' -f4)"
7171
fi
7272

73-
echo "Attempting to download git-remote-codecommit v${VERSION}..."
73+
echo "Attempting to download git-remote-codecommit ${VERSION}..."
7474

7575
PACKAGE_TYPE="tar.gz"
7676
if [ "${OS}" == "windows" ]; then
@@ -96,7 +96,7 @@ install() {
9696
local extract_dir="$DOWNLOAD_DIR/git-remote-codecommit-$VERSION"
9797
mkdir -p $extract_dir
9898
tar xf "$GRC_FILE" -C "${extract_dir}"
99-
sudo cp "${extract_dir}/git-remote-codecommit" "/usr/local/bin/git-remote-codecommit"
99+
cp "${extract_dir}/git-remote-codecommit" "/usr/local/bin/git-remote-codecommit"
100100

101101
echo "Installed git-remote-codecommit to /usr/local/bin"
102102
}

0 commit comments

Comments
 (0)