Skip to content

Commit

Permalink
Fixed more miscellaneous issues in install script
Browse files Browse the repository at this point in the history
  • Loading branch information
slashtechno committed Nov 4, 2022
1 parent b8d7f97 commit cf6e56e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/golang/credits
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(github.com/.../...)
canha/golang-tools-install-script - the install script
canha/golang-tools-install-scrip t - the install script

This comment has been minimized.

Copy link
@theofficialgman

theofficialgman Nov 4, 2022

Collaborator

what is this spacing?

golang/go - the language itself
slashtechno - addition to Pi-Apps
4 changes: 2 additions & 2 deletions apps/golang/install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

#!/bin/bash
VERSION="1.19.2"

[ -z "$GOROOT" ] && GOROOT="$HOME/.go"
Expand All @@ -14,7 +14,7 @@ case "$arch" in
*)
error "arch variable is not set, can not continue"
;;
esac
esac

if [ -z "$PLATFORM" ]; then
echo "Your operating system is not supported by the script."
Expand Down
22 changes: 1 addition & 21 deletions apps/golang/uninstall
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
OS="$(uname -s)"
ARCH="$(uname -m)"

case $OS in
"Linux")
case $ARCH in
"aarch64")
ARCH=arm64
;;
"armv6" | "armv7l")
ARCH=armv6l
;;
"armv8")
ARCH=arm64
;;
esac
PLATFORM="linux-$ARCH"
;;

esac

#!/bin/bash
rm -rf "$GOROOT"
if [ "$OS" == "Darwin" ]; then
if [ "$shell" == "fish" ]; then
Expand Down

0 comments on commit cf6e56e

Please sign in to comment.