Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 83d0072

Browse files
committed
Added command line switch --no-backup to box database import command.
1 parent f00d84c commit 83d0072

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/commands/database

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ function database_import() {
156156

157157
fi
158158

159+
if [ ! $(has_arg --no-backup) ]; then
159160
database_backup "${basefile}.bak"
160-
161161
if [ $? -ne 0 ]; then
162162
output "Error when backing up to ${basefile}.bak"
163163
return 4
164+
fi
164165
fi
165166

166167
output "Dropping any prior tables"

0 commit comments

Comments
 (0)