mirror of
https://github.com/linuxserver/docker-baseimage-alpine-nginx.git
synced 2026-02-20 01:03:46 +08:00
Minor formatting of migration script
This commit is contained in:
parent
63cc7eb504
commit
73c1df2050
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user