aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziggys <ziggys@autistici.org>2018-08-04 18:39:04 -0400
committerziggys <ziggys@autistici.org>2018-08-04 18:39:04 -0400
commite779c18d0619cd0aeb147e3d1fae28fdcbadb9d3 (patch)
tree52e38dfabab0ca512d0079691fe6d7d3f1bfca4e
parent11eedca916bfbaac1cfaa9e6fb70eedf41ee3820 (diff)
downloadgsocial-cli-e779c18d0619cd0aeb147e3d1fae28fdcbadb9d3.zip
gsocial-cli-e779c18d0619cd0aeb147e3d1fae28fdcbadb9d3.tar
Release version 0.6.0v0.6.0
Changelog: - Informative settings: add informative headers with account information for logged user - Show command added: shows configured settings, profiles info and account history - Ugrade option is not longer available for installer.sh - Bugfixes
-rwxr-xr-xgsocial-cli.sh2
-rwxr-xr-xscripts/installer.sh60
2 files changed, 2 insertions, 60 deletions
diff --git a/gsocial-cli.sh b/gsocial-cli.sh
index e3dc6e4..7ff5f60 100755
--- a/gsocial-cli.sh
+++ b/gsocial-cli.sh
@@ -9,7 +9,7 @@
# scriptinfo
SCRIPTNAME="${0##*/}"
SCRIPTNAME="${SCRIPTNAME%%.sh}"
-VERSION="0.5.1" # Tags count. Remote users timelines
+VERSION="0.6.0" # Show command: shows configuration, accounts and history
AUTHOR="ziggys"
LICENSE="The Drunken BEER License v 1.1 (https://git.p4g.club/git/beer/about)"
diff --git a/scripts/installer.sh b/scripts/installer.sh
index 4b5c56d..de89e57 100755
--- a/scripts/installer.sh
+++ b/scripts/installer.sh
@@ -8,7 +8,7 @@
# scriptinfo
SCRIPTNAME="${0##*/}"
SCRIPTNAME="${SCRIPTNAME%%.sh}"
-VERSION="0.5.1" # Tags count. Remote users timelines
+VERSION="0.6.0" # Show command: shows configuration, accounts and history
AUTHOR="ziggys"
LICENSE="The Drunken BEER License v 1.1 (https://git.p4g.club/git/beer/about)"
@@ -29,7 +29,6 @@ Usage: ${SCRIPTNAME} [option] <args>
Options
-p, --prefix <PATH> Install gsocial-cli in PATH (e.g. '/usr/bin/')
-u, --uninstall Uninstall gsocial-cli from where it's installed
- -U, --upgrade Upgrade gsocial-cli current version
-h HELP Print this help and exit
@@ -67,20 +66,6 @@ uninstall () {
exit 0
}
-# upgrade
-upgrade () {
- # reset configuration
- PPSCRIPT="${PSCRIPT%%.sh}"
- XDGCONFIG="${XDG_HOME_CONFIG:=${HOME}/.config}"
- CONFIGD="${XDGCONFIG}/${PPSCRIPT}"
- GSF="${CONFIGD}/${PPSCRIPT}_config"
- rm -f "${CONFIGD}"/*.history
- rm -f "${CONFIGD}"/*.theme
- rm -f "${GSF}"
- rm -f "${PREFIX}"
- install
-}
-
# colors for stdout
good_c="[0;32m"
warn_c="[0;33m"
@@ -116,49 +101,6 @@ case "${ACTION}" in
"${good_c}" "${PSCRIPT%%.sh}" "${good_c}" "${PREFIX}"
uninstall
;;
-
- "-U" | "--upgrade" )
- printf "\\e%sgsocial-cli-%s\\e[0m v%s\\n\\n" \
- "${good_c}" "${SCRIPTNAME}" "${VERSION}"
-
- WHEREIS="$(which gsocial-cli)"
-
-
- if [ -z "${WHEREIS}" ]; then
- printf "\\e%sfatal: \\e%s%s\\e%s is not installed\\e[0m\\n" \
- "${diee_c}" "${warn_c}" "${PSCRIPT%%.sh}" "${info_c}"
- printf "\\e%sInstalling now...\\e[0m\\n" "${warn_c}"
- PREFIX="/usr/bin/"
- install
-
- else
- NEXT="${VERSION}"
- CURRENT="$("${WHEREIS}" | grep "version" | awk '{print $3}')"
-
- test "${CURRENT}" = "${NEXT}" \
- && printf "\\e%s%s\\e[0m is already in its last version\\n\\n" \
- "${good_c}" "${PSCRIPT%%.sh}" \
- && exit 0
-
- printf "Upgrading \\e%s%s\\e[0m \\e%sv.%s\\e[0m to \\e%sv.%s\\e[0m\\n" \
- "${good_c}" "${PSCRIPT}" "${good_c}" "${CURRENT}" "${warn_c}" "${NEXT}"
- printf "\\e%sWARNING:\\e[0mThis action will " "${warn_c}"
- printf "\\e%sRESET\\e[0m global settings " "${warn_c}"
- printf "and \\e%sERASE\\e[0m all history files.\\n" "${warn_c}"
- printf "\\e%sPlease,\\e[0m do a backup before\\n\\n" "${warn_c}"
- printf "\\e%sPROFILES\\e[0m will be kept safely untouched\\n" "${good_c}"
- printf "Do you wish to continue? (yes/no): "
- read -r UPGRADEME
- fi
-
- case "${UPGRADEME}" in
- yes | YES | y | Y | Yes ) upgrade ;;
- no | NO | n | N | No ) printf "\\e%sexiting now..\\e[0m\\n\\n" \
- "${diee_c}" ;;
- *) printf "\\e%sinvalid: \\e%s%s\\e[0m\\n\\n" \
- "${diee_c}" "${info_c}" "${UPGRADEME}" ;;
- esac
- ;;
"-h" | "--help" ) usage "$@" ;;
esac