]> apps.delaporte.us Git - dotfiles.git/blobdiff - install/wtfutil.sh
Fix
[dotfiles.git] / install / wtfutil.sh
index 1647b77d70b7e93663012de450b73d4c76714197..7c7bf2c7cb71719f57b59ed718b8ca1d201e3b40 100755 (executable)
@@ -1,7 +1,18 @@
+# Set the Go proxy variable to GoCenter
+# export GOPROXY="https://gocenter.io"
 
-if [ ! -f /usr/bin/wtfutil ]; then
-       cd /tmp
-       wget https://github.com/wtfutil/wtf/releases/download/v0.35.0/wtf_0.35.0_linux_armv6.tar.gz
-  tar -xzf /wtf_0.35.0_linux_armv6.tar.gz
-       mv ./wtfutil /usr/bin/wtfutil
-fi
+# Enable Go modules
+# export GO111MODULE=on
+
+# go install github.com/edthedev/wtf@eda8e0f
+# cd $GOPATH/src/github.com/wtfutil/wtf
+# make install
+# make run
+
+echo "TODO: Get latest .tar release into ~/Downloads"
+mkdir /tmp/wtf
+cd /tmp/wtf
+tar xvf $HOME/Downloads/wtf*.tar.gz
+mv /tmp/wtf/wtf_0.43.0_linux_amd64/wtfutil ~/.local/bin
+rm -rf /tmp/wtf
+which wtfutil
\ No newline at end of file