Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
name: "Release"
if: ${{ github.event_name == 'release' }}
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 5
needs: [windows]

permissions:
Expand Down Expand Up @@ -206,6 +206,7 @@ jobs:
vt:
name: "VirusTotal"
runs-on: ubuntu-latest
timeout-minutes: 15
continue-on-error: true
needs: [release]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vhs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
vhs:
name: "VHS ${{ matrix.tape }}"
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 15
#continue-on-error: ${{ inputs.continue-on-error }}
strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![GitHub Downloads](https://img.shields.io/github/downloads/smashedr/install-release/total?logo=rolldown&logoColor=white)](https://github.com/smashedr/install-release/releases/latest)
[![Image Size](https://badges.cssnr.com/ghcr/size/smashedr/install-release)](https://github.com/smashedr/install-release/pkgs/container/install-release)
[![Go Version](https://img.shields.io/github/go-mod/go-version/smashedr/install-release?logo=go&logoColor=white&label=go)](https://github.com/smashedr/install-release/blob/master/go.mod)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=smashedr_install-release&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=smashedr_install-release)
[![Deployment Docs](https://img.shields.io/github/deployments/smashedr/install-release/docs?logo=materialformkdocs&logoColor=white&label=docs)](https://github.com/smashedr/install-release/deployments/docs)
[![Deployment Preview](https://img.shields.io/github/deployments/smashedr/install-release/preview?logo=labex&logoColor=white&label=preview)](https://github.com/smashedr/install-release/deployments/preview)
[![Workflow Release](https://img.shields.io/github/actions/workflow/status/smashedr/install-release/release.yaml?logo=norton&logoColor=white&label=release)](https://github.com/smashedr/install-release/actions/workflows/release.yaml)
Expand Down
19 changes: 6 additions & 13 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function fail() {


# OS
# TODO: Confirm setting EXE to .exe is not required
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
echo "OS: ${OS}"
case "${OS}" in
Expand Down Expand Up @@ -99,7 +100,7 @@ echo "GET: ${GET}"
# BIN
echo "Target Directory: $TARGET_BIN"
echo -n "Enter Path [press <enter> to accept]: "
read -r input
read -r input </dev/tty
if [[ -n "${input}" ]]; then
# TODO: Sanatize TARGET_BIN
TARGET_BIN="${input}"
Expand Down Expand Up @@ -153,18 +154,10 @@ echo "DEST: ${DEST}"


# MOVE
mv "${TEMP_BIN}" "${DEST}" || fail "move to destination failed"

#OUT=$(mv "${TEMP_BIN}" "${DEST}" 2>&1)
#STATUS=$?
#echo "OUT: ${OUT}"
#echo "STATUS: ${STATUS}"
#if [[ "${STATUS}" != "0" ]]; then
# if [[ $OUT =~ "Permission denied" ]]; then
# echo "mv with sudo..."
# sudo mv "${TEMP_BIN}" "${DEST}" || fail "sudo mv failed"
# fi
#fi
if ! mv "${TEMP_BIN}" "${DEST}"; then
echo "retrying mv with sudo..."
sudo mv "${TEMP_BIN}" "${DEST}" || fail "sudo mv failed"
fi


echo "✅ Successfully Installed: ${EXE}"
Loading