Skip to content

Commit

Permalink
🐳 chore: fix rights to perform
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Nov 13, 2023
1 parent 541ef46 commit 07f96a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/shurco/litecart

go 1.21

toolchain go1.21.0
go 1.21.3

require (
github.com/disintegration/imaging v1.6.2
Expand Down
4 changes: 2 additions & 2 deletions scripts/golang
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Linux*)
GO_RELEASE=$(get_latest_go_version)
GO_PATH="$HOME/go"

maybe_sudo mkdir -p $GO_PATH
mkdir -p $GO_PATH
echo -e "\nexport PATH=\$PATH:${GO_PATH}/bin\nexport PATH=\$PATH:\$HOME/go/bin\n" >>~/.bashrc
source ~/.bashrc

curl --silent https://dl.google.com/go/go${GO_RELEASE}.linux-amd64.tar.gz | sudo tar -vxz --strip-components 1 -C ${GO_PATH} >/dev/null 2>&1
curl --silent https://dl.google.com/go/go${GO_RELEASE}.linux-amd64.tar.gz | tar -vxz --strip-components 1 -C ${GO_PATH} >/dev/null 2>&1
;;
*)
print_answer "ERROR" red
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Linux)
mkdir -p "${HOME}/.local/bin"

print_header "Install/Update sqlite3"
sudo apt-get install sqlite3 -y >/dev/null 2>&1
maybe_sudo apt-get install sqlite3 -y >/dev/null 2>&1
print_answer "SUCCESS" green

print_header "Install/Update golangci-lint"
Expand Down

0 comments on commit 07f96a1

Please sign in to comment.