Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 580dd61

Browse files
dmiusDmitry
authored andcommitted
Some things restored
1 parent 3da40f0 commit 580dd61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

nancy_run.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ function checkPath() {
301301
if [[ $path =~ "file:///" ]]
302302
then
303303
path=${path/file:\/\//}
304-
if [ -f $path ] || [ -d $path ]; then
304+
if [ -f $path ]
305+
then
305306
eval "$1=\"$path\"" # update original variable
306307
return 0 # file found
307308
else
@@ -312,7 +313,8 @@ function checkPath() {
312313
then
313314
curdir=$(pwd)
314315
path=$curdir/${path/file:\/\//}
315-
if [ -f $path ] || [ -d $path ]; then
316+
if [ -f $path ]
317+
then
316318
eval "$1=\"$path\"" # update original variable
317319
return 0 # file found
318320
else
@@ -406,7 +408,7 @@ function checkParams() {
406408
echo "$DB_DUMP_PATH" > $TMP_PATH/db_dump_tmp.sql
407409
DB_DUMP_PATH="$TMP_PATH/db_dump_tmp.sql"
408410
else
409-
[ "$DEBUG" -eq "1" ] && echo "DEBUG: Value given as db-dump will use as path"
411+
[ "$DEBUG" -eq "1" ] && echo "DEBUG: Value given as db-dump will use as filename"
410412
fi
411413
DB_DUMP_FILENAME=$(basename $DB_DUMP_PATH)
412414
DB_DUMP_EXT=${DB_DUMP_FILENAME##*.}

0 commit comments

Comments
 (0)