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