Compare commits

...

2 Commits

1 changed files with 7 additions and 5 deletions

View File

@ -15,15 +15,17 @@ INFO_COLOR="\033[0;32m"
ERR_COLOR="\033[1;31m"
NO_COLOR="\033[0m"
info() {
printf "$APP_COLOR[$APP_NAME] $INFO_COLOR$1$NO_COLOR\n"
function info() {
# shellcheck disable=SC2059
printf "${APP_COLOR}[$APP_NAME] $INFO_COLOR%s$NO_COLOR\n" "$1"
}
error() {
printf "$APP_COLOR[$APP_NAME] $ERR_COLOR$1$NO_COLOR\n"
function error() {
# shellcheck disable=SC2059
printf "${APP_COLOR}[$APP_NAME] $ERR_COLOR%s$NO_COLOR\n" "$1"
}
usage() {
function usage() {
info "Usage: flatpak-sync [sync | add <appId> | remove <appId> | usage]"
info "sync: Synchronized installed apps with app list."
info "add | a | install | i: Add app with app id to the list and sync."