test data dir migration
This commit is contained in:
@@ -22,8 +22,8 @@ target_dir="$2"
|
||||
|
||||
if [[ "${BOX_ENV}" == "test" ]]; then
|
||||
# be careful not to nuke some random directory when testing
|
||||
[[ "${source_dir}" != *"./cloudron_test/"* ]] && exit 1
|
||||
[[ "${target_dir}" != *"./cloudron_test/"* ]] && exit 1
|
||||
[[ "${source_dir}" != *"/.cloudron_test/"* ]] && exit 1
|
||||
[[ "${target_dir}" != *"/.cloudron_test/"* ]] && exit 1
|
||||
fi
|
||||
|
||||
# copy and remove - this way if the copy fails, the original is intact
|
||||
|
||||
Reference in New Issue
Block a user