From e87d497ea77d187ef3bdf4d914c9dc6ecd7fa9ae Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 20 Jul 2023 22:12:20 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20(flatpak-sync)=20Use=20consistent?= =?UTF-8?q?=20function=20declarations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flatpak-sync/flatpak-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flatpak-sync/flatpak-sync.sh b/flatpak-sync/flatpak-sync.sh index 4b06361..4b7de69 100755 --- a/flatpak-sync/flatpak-sync.sh +++ b/flatpak-sync/flatpak-sync.sh @@ -15,15 +15,15 @@ INFO_COLOR="\033[0;32m" ERR_COLOR="\033[1;31m" NO_COLOR="\033[0m" -info() { +function info() { printf "$APP_COLOR[$APP_NAME] $INFO_COLOR$1$NO_COLOR\n" } -error() { +function error() { printf "$APP_COLOR[$APP_NAME] $ERR_COLOR$1$NO_COLOR\n" } -usage() { +function usage() { info "Usage: flatpak-sync [sync | add | remove | usage]" info "sync: Synchronized installed apps with app list." info "add | a | install | i: Add app with app id to the list and sync."