Add .editorconfig and correct indentation for many seqs

This commit is contained in:
2022-03-14 21:27:29 +01:00
parent bb8b54597a
commit 71612aef94
34 changed files with 178 additions and 164 deletions

View File

@@ -39,12 +39,12 @@ step_1_info() {
step_1_alias() { ALIAS="backup"; }
step_1() {
shift
local arg
local retVal
local dupArgs
local purgeAfter=1
for arg in "$@" ; do
case "$1" in
--no-purge|-n)
@@ -65,7 +65,7 @@ step_1() {
echo " [W] $toolName command \"$1\" not recognized"
return 1
fi
echo " [I] Running backup profile [$SEQ_PROFILE_NAME]"
if [ "${dupArgs[0]}" != "full" ] && [ ! -z "$EBU_MAX_FULLBKP_AGE" ] ; then
@@ -114,10 +114,10 @@ step_5_info() {
step_5_alias() { ALIAS="restore"; }
step_5() {
shift
local arg
local restoreOpt
for arg in "$@" ; do
case "$1" in
--file-to-restore|-f)
@@ -195,7 +195,7 @@ step_20() {
if [ ! -z "$1" ] ; then
ebuTarget="$1"
fi
checkInstalled
exe $toolBin collection-status "$ebuTarget"
}
@@ -208,11 +208,11 @@ step_22() {
if [ ! -z "$1" ] ; then
ebuTarget="$1"
fi
checkInstalled
exe $toolBin list-current-files "$ebuTarget"
}
step_70_info() {
echo -n "Manage cron file for "
@@ -233,7 +233,7 @@ step_70() {
local cronScript="$toolCronDir/${toolPrefix}$SEQ_PROFILE_NAME"
local cronLog='>/dev/null'
local cronEntry="$EBU_CRONTIME $(whoami) $WDIR/$(basename -- $0) -qq -p $SEQ_PROFILE_NAME"
for arg in "$@" ; do
case "$1" in
--remove|-r)
@@ -248,9 +248,9 @@ step_70() {
exe touch "$cronLog"
exe chmod 600 "$cronLog"
fi
cronEntry+=" >$cronLog"
if [ -z "$EBU_CRONTIME" ] || [ $cronRemove -ne 0 ] ; then
echo " [I] Removing cron for profile $SEQ_PROFILE_NAME"
exe rm -r "$cronScript"