This commit is contained in:
jay committed 2023-10-27 22:56:05 +08:00
1 parent 12bcba518d
commit cf35805f68
5 files changed
+7 -4

No files matched your search

@@ -2,9 +2,10 @@
set -x
GO_VERSION="1.21.0"
GO_VERSION="1.21.3"
NODE_VERSION="20.5.1"
ARCH="{{ .chezmoi.arch }}"
OSTYPE="{{ .chezmoi.os }}"
@@ -39,7 +40,7 @@ function install_golang {
mv "$tmpDir/go" "$HOME/apps/go-${GO_VERSION}"
if [ -L "$HOME/apps/go" ]; then
rm -rf `readlink -f "$HOME/apps/go"`
#rm -rf `readlink -f "$HOME/apps/go"`
unlink "$HOME/apps/go"
fi
@@ -88,7 +89,7 @@ function install_nodejs {
mv "$dirs" "$HOME/apps/node-v${NODE_VERSION}"
if [ -L "$HOME/apps/node" ]; then
rm -rf `readlink -f "$HOME/apps/node"`
#rm -rf `readlink -f "$HOME/apps/node"`
unlink "$HOME/apps/node"
fi