Skip to content

Commit

Permalink
Update APP-MANAGER
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Nov 30, 2024
1 parent 864f011 commit 1da1212
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ SCRIPTDIR="$(xdg-user-dir DESKTOP 2>/dev/null || echo "$HOME")"
export SCRIPTDIR

# Colors
RED='\033[0;31m'
Gold='\033[0;33m'
Green='\033[0;32m'
RED='\033[0;31m'
Gold='\033[0;33m'
Green='\033[0;32m'
LightBlue='\033[1;34m'
DIVIDING_LINE="-----------------------------------------------------------------------------"

Expand Down Expand Up @@ -67,7 +67,7 @@ if you wish to later change the location, first remove all the programs and then

function _appman_check() {
if [ ! -f "$APPMANCONFIG"/appman-config ]; then
echo "$DIVIDING_LINE"
echo "$DIVIDING_LINE"
[ "$AMCLI" = am ] && echo ">>> Configure AppMan" || echo ">>> Thank you for choosing AppMan!"
echo "$DIVIDING_LINE"
echo "$APPMAN_SETUP_MSG" | fold -sw 77 | sed 's/^/ /g'
Expand All @@ -81,11 +81,11 @@ function _appman_check() {
if echo "$location" | grep "$BINDIR" >/dev/null 2>&1; then
echo "$DIVIDING_LINE"
echo " 💀 ERROR, you can't install applications in \"$BINDIR\""
echo " $BINDIR is normally used for executables, Please choose a different path and retry!"
echo " $BINDIR is normally used for executables, Please choose a different path and retry!"
echo "$DIVIDING_LINE"
exit 1
elif ! mkdir -p "$location" 2>/dev/null || [ ! -w "$location" ]; then
echo " 💀 ERROR: You don't have write access to $location or it is invalid"
echo " 💀 ERROR: You don't have write access to $location or it is invalid"
exit 1
fi
mkdir -p "$APPMANCONFIG" || exit 1
Expand Down Expand Up @@ -522,7 +522,7 @@ function _use_apikey() {
case $2 in
'del'|'delete'|'remove')
[ -f "$ghapikey_file" ] || { echo " ✖ No file named $ghapikey_file has been found"; exit 1; }
rm -f "$ghapikey_file" && echo "$ghapikey_file has been removed"
rm -f "$ghapikey_file" && echo "$ghapikey_file has been removed"
exit 0
esac
if [[ "$2" =~ ^(gh[ps]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})$ ]]; then
Expand Down Expand Up @@ -1075,7 +1075,7 @@ case "$1" in
DESCRIPTION: A command line utility to install and manage AppImages and other portable programs for GNU/Linux thanks to its AUR-inspired database.
OPTIONS:
${Gold}about, -a\033[0m
${LightBlue}$AMCLI -a {PROGRAM}\033[0m
Expand Down

0 comments on commit 1da1212

Please sign in to comment.