Minor formatting of migration script

This commit is contained in:
Eric Nemchik 2022-10-28 16:12:54 -05:00
parent 63cc7eb504
commit 73c1df2050

View File

@ -1,12 +1,12 @@
#!/usr/bin/with-contenv bash
migrate(){
migrate() {
local OLD_LOCATION="${1}"
local NEW_LOCATION="${2}"
if [[ -f ${OLD_LOCATION} ]];then
if [[ -f ${OLD_LOCATION} ]]; then
echo "found ${OLD_LOCATION}"
if [[ ! -f ${NEW_LOCATION} ]];then
if [[ ! -f ${NEW_LOCATION} ]]; then
echo "moving to ${NEW_LOCATION}"
mv "${OLD_LOCATION}" "${NEW_LOCATION}"
else