From b25a5b794be7093dbcd556fcab2ebc50bb33e8b2 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Sun, 30 Jan 2022 21:03:14 +0500 Subject: Updates. --- d-backup | 7 ++--- emojis | 17 +++++++++++ git-split | 4 +-- ledger-price-db-update.py | 6 ++-- mutt-ldap-query | 73 +++++++++++++++++++++++++++++++++++++++++++++++ packages-by-component | 28 ++++++++++++++++++ 6 files changed, 127 insertions(+), 8 deletions(-) create mode 100755 mutt-ldap-query create mode 100755 packages-by-component diff --git a/d-backup b/d-backup index fd94d54..14906d4 100755 --- a/d-backup +++ b/d-backup @@ -7,7 +7,7 @@ # TARGET="sftp://server/path" # ---------------- 8< -------------------- -if [ ! $(whoami) = root ] ; then +if [ ! "$(whoami)" = root ] ; then echo "This script must be run by the user: root" exit 1 fi @@ -75,12 +75,12 @@ while (( "$#" )) ; do ;; list) shift - list $* + list "$@" exit 0 ;; restore) shift - restore $* + restore "$@" exit 0 ;; *) @@ -89,4 +89,3 @@ while (( "$#" )) ; do esac shift done - diff --git a/emojis b/emojis index 1347782..a5d7cba 100755 --- a/emojis +++ b/emojis @@ -8,16 +8,33 @@ list() { fzf --no-sort --reverse | awk '{print $1}' | xsel } +print_help() { + cat <