Skip to content

Commit

Permalink
fix(install.sh): remove duplicate functions (dagger#9078)
Browse files Browse the repository at this point in the history
Remove duplicate functions, `os_uname` and `os_arch`.

Signed-off-by: Thanabodee Charoenpiriyakij <wingyminus@gmail.com>
  • Loading branch information
wingyplus authored Dec 2, 2024
1 parent d1e140d commit 1259e53
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,31 +255,6 @@ Install specified dev build <commit sha>:
EOF
}

uname_os() {
os=$(uname -s | tr '[:upper:]' '[:lower:]')
case "$os" in
cygwin_nt*) os="windows" ;;
mingw*) os="windows" ;;
msys_nt*) os="windows" ;;
esac
echo "$os"
}

uname_arch() {
arch=$(uname -m)
case $arch in
x86_64) arch="amd64" ;;
x86) arch="386" ;;
i686) arch="386" ;;
i386) arch="386" ;;
aarch64) arch="arm64" ;;
armv5*) arch="armv5" ;;
armv6*) arch="armv6" ;;
armv7*) arch="armv7" ;;
esac
echo "$arch"
}

latest_version() {
curl -sfL "${base}/${name}/latest_version"
}
Expand Down

0 comments on commit 1259e53

Please sign in to comment.