From 1718becca1fd3b039095cdf30cfe0dc29e904504 Mon Sep 17 00:00:00 2001 From: AllanCapistrano Date: Sat, 29 Jul 2023 16:15:18 -0300 Subject: [PATCH] feat: create update gbc for termux script --- scripts/update-termux.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/update-termux.sh diff --git a/scripts/update-termux.sh b/scripts/update-termux.sh new file mode 100644 index 0000000..8d6b35b --- /dev/null +++ b/scripts/update-termux.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Removing older version. +sudo rm /usr/bin/gbc + +# Downloading the latest version. +curl -LO https://github.com/AllanCapistrano/gbc/releases/download/v1.2.0/gbc-arm + +# Renaming file +mv gbc-arm gbc + +# Moving the CLI and settings file. +mv gbc $PATH + +# Giving permission to run the CLI. +chmod +x $PATH/gbc + +gbc --help + +echo "gbc updated to version 1.2.0" \ No newline at end of file