Skip to content

Commit 18525f0

Browse files
committed
Shellcheck fixes
1 parent 6297807 commit 18525f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backup-database.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
MYSQL_DUMP="/opt/lampp/bin/mysqldump"
1010

1111
echo "Enter Database name: "
12-
read DBNAME
12+
read -r DBNAME
1313
echo "Database: $DBNAME will be backed up"
1414

1515
echo "Enter backup tag description (<ENTER> for default): "
16-
read POSTFIX_NAME
16+
read -r POSTFIX_NAME
1717

18-
if [ $POSTFIX_NAME != "" ]; then
19-
echo 'Backup tag description given: ' $POSTFIX_NAME
18+
if [ "$POSTFIX_NAME" != "" ]; then
19+
echo 'Backup tag description given: ' "$POSTFIX_NAME"
2020
POSTFIX_NAME="_"$POSTFIX_NAME
2121
else
2222
# no arguments

0 commit comments

Comments
 (0)