format things ...

This commit is contained in:
6543 2019-05-11 18:42:40 +02:00
parent d6c6b2d18d
commit 7968601e67
2 changed files with 2 additions and 4 deletions

View File

@ -28,9 +28,8 @@
readonly mode=$(echo $1 | tr -d '-')
readonly md5list="$2"
moviedir="$3"
}

{ #db
#db
dbname=$(grep -v '#' $globalconf | grep ^dbname= | sed "s|^dbname=||g" | tr -d '"')
dbhost=$(grep -v '#' $globalconf | grep ^dbhost= | sed "s|^dbhost=||g" | tr -d '"')
dbuser=$(grep -v '#' $globalconf | grep ^dbuser= | sed "s|^dbuser=||g" | tr -d '"')

View File

@ -32,9 +32,8 @@
moviedir=""$(echo $moviedir | sed 's|/$||g')""
[ -z "$moviedir" ] && exit 255 #catch case moviedir="/"
readonly DATE=$(date '+%Y-%m-%d')
}

{ #db
#db
dbname=$(grep -v '#' $globalconf | grep ^dbname= | sed "s|^dbname=||g" | tr -d '"')
dbhost=$(grep -v '#' $globalconf | grep ^dbhost= | sed "s|^dbhost=||g" | tr -d '"')
dbuser=$(grep -v '#' $globalconf | grep ^dbuser= | sed "s|^dbuser=||g" | tr -d '"')