Skip to content

Commit f58de70

Browse files
authored
Merge pull request #412 from logicoa/logicoa-mongodb-wildcard-drop-order
fix: wildcard case order
2 parents 9d5406b + 5ab0cbe commit f58de70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/usr/local/bin/restore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,16 +1132,16 @@ EOF
11321132
echo -e "${coff}"
11331133
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}Y${cdgy}\) \| \(${cwh}N${cdgy}\) \| \(${cwh}Q${cdgy}\) : ${cwh}${coff})" q_menu_mongo_dropdb
11341134
case "${q_menu_mongo_dropdb,,}" in
1135-
"y" | "yes" | * )
1136-
mongo_dropdb="--drop"
1137-
;;
11381135
"n" | "update" )
11391136
unset mongo_dropdb
11401137
;;
11411138
"q" | "exit" )
11421139
print_info "Quitting Script"
11431140
exit 1
11441141
;;
1142+
"y" | "yes" | * )
1143+
mongo_dropdb="--drop"
1144+
;;
11451145
esac
11461146

11471147
print_info "Restoring '${r_filename}' into '${r_dbhost}'/'${r_dbname}'"

0 commit comments

Comments
 (0)