From 7ce5288a8c8b8e3c78b0221f1393dee8f3c24674 Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Sun, 1 Mar 2020 09:42:14 +0100 Subject: [PATCH] fix latest minimal filenames --- lib/util-publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util-publish.sh b/lib/util-publish.sh index 176c26b..4bc96e4 100644 --- a/lib/util-publish.sh +++ b/lib/util-publish.sh @@ -190,7 +190,7 @@ sync_latest_php(){ msg2 "Uploading php redirector ..." local filename=".latest.php" local php="latest.php" - [[ ${MINIMAL} == "yes" ]] && php="latest-minimal.php" + [[ ${MINIMAL} == "yes" ]] && filename=".latest.php" && php="latest-minimal.php" chmod g+w "${src_dir}/${filename}" scp -p "${src_dir}/.${php}" "${webshell}/${htdocs}/${php}" } @@ -199,7 +199,7 @@ sync_latest_html(){ msg2 "Uploading url redirector ..." local filename=".latest" local html="latest" - [[ ${MINIMAL} == "yes" ]] && html="latest-minimal" + [[ ${MINIMAL} == "yes" ]] && filename=".latest-minimal" && html="latest-minimal" chmod g+w "${src_dir}/${filename}" scp -p "${src_dir}/.${html}" "${webshell}/${htdocs}/${html}" }