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

@@ -68,7 +68,7 @@ step_10_alias() { ALIAS="createdb"; }
step_10() {
local arg
local dbOption=
shift
for arg in "$@" ; do
case "$1" in
@@ -84,7 +84,7 @@ step_10() {
--remote|-r)
dbRemote="$2"
shift 2 ;;
*)
*)
break ;;
esac
done
@@ -120,7 +120,7 @@ step_11_info() {
step_11_alias() { ALIAS="createuser"; }
step_11() {
local arg
shift
for arg in "$@" ; do
case "$1" in
@@ -136,7 +136,7 @@ step_11() {
--remote|-r)
dbRemote="$2"
shift 2 ;;
*)
*)
break ;;
esac
done
@@ -172,7 +172,7 @@ step_12_info() {
step_12_alias() { ALIAS="grant"; }
step_12() {
local arg
shift
for arg in "$@" ; do
case "$1" in
@@ -188,7 +188,7 @@ step_12() {
--remote|-r)
dbRemote="$2"
shift 2 ;;
*)
*)
break ;;
esac
done
@@ -209,7 +209,7 @@ step_14_info() {
step_14_alias() { ALIAS="revokeall"; }
step_14() {
local arg
shift
for arg in "$@" ; do
case "$1" in
@@ -219,7 +219,7 @@ step_14() {
--remote|-r)
dbRemote="$2"
shift 2 ;;
*)
*)
break ;;
esac
done
@@ -254,7 +254,7 @@ step_34_info() {
step_34_alias() { ALIAS="listprivileges"; }
step_34() {
local arg
shift
for arg in "$@" ; do
case "$1" in
@@ -264,7 +264,7 @@ step_34() {
--remote|-r)
dbRemote="$2"
shift 2 ;;
*)
*)
break ;;
esac
done
@@ -308,7 +308,7 @@ step_50() {
elif [ ! -e "$2" ]; then
endReturn -o 1 -f "$2 does not exist"
fi
echo " [I] Dumping database $dbName to $buTarget"
exep "mysqldump --single-transaction $dbName > \"$(realpath $buTarget)/${dbName}_backup_$(date +%Y%m%d-%H%M%S).sql\""
endReturn -o $? "Error creating $dbName backup"