From 73c1df2050dafa0575005dfd52922200fde5d33f Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Fri, 28 Oct 2022 16:12:54 -0500 Subject: [PATCH] Minor formatting of migration script --- root/migrations/01-nginx-site-confs-default | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/migrations/01-nginx-site-confs-default b/root/migrations/01-nginx-site-confs-default index b631be2..6750962 100644 --- a/root/migrations/01-nginx-site-confs-default +++ b/root/migrations/01-nginx-site-confs-default @@ -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