mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 03:20:38 +02:00
unify _usage
This commit is contained in:
parent
06cff9f4a3
commit
ad1fe84dcb
3 changed files with 3 additions and 8 deletions
|
@ -1,10 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#
|
||||
# archboot-restore-usbstick.sh - restore usbstick to FAT32
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
# usage(exitvalue)
|
||||
# outputs a usage message and exits with value
|
||||
# archboot-restore-usbstick.sh - restore usbstick to FAT32
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
. /usr/lib/archboot/common.sh
|
||||
_usage()
|
||||
{
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# rsync-backup.sh - copy files recursivly with rsync
|
||||
# by Tobias Powalowski <tpowa@archlinux.org>
|
||||
# usage(exitvalue)
|
||||
# outputs a usage message and exits with value
|
||||
. /usr/lib/archboot/common.sh
|
||||
_usage()
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ _usage () {
|
|||
echo -e "\e[1m---------------------------------------------\e[m"
|
||||
echo "Check on new packages and release new images to server."
|
||||
echo ""
|
||||
echo -e "usage: \e[1m${_BASENAME} run\e[m"
|
||||
echo -e "Usage: \e[1m${_BASENAME} run\e[m"
|
||||
exit 0
|
||||
}
|
||||
[[ -z "${1}" || "${1}" != "run" ]] && _usage
|
||||
|
|
Loading…
Reference in a new issue