include main.sh in evobackupctl

This commit is contained in:
Jérémy Lecour 2024-01-02 12:11:55 +01:00 committed by Jérémy Lecour
parent 28a0f7a17a
commit 0f0b328f27
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,5 @@
#!/bin/bash
readonly VERSION="23.12-pre"
# shellcheck disable=SC2155
readonly PROGNAME=$(basename "${0}")
# shellcheck disable=SC2155
@ -12,6 +10,8 @@ readonly ARGS=$@
# Change this to wherever you install the libraries
readonly LIBDIR="/usr/local/lib/evobackup"
source "${LIBDIR}/main.sh"
show_version() {
cat <<END
${PROGNAME} version ${VERSION}

View file

@ -1,6 +1,8 @@
#!/bin/bash
# shellcheck disable=SC2034,SC2317
readonly VERSION="23.12-pre"
# set all programs to C language (english)
export LC_ALL=C