aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2024-01-15 14:48:22 +0100
committerStanisław Zagórowski <hasohasacz@gmail.com>2024-01-15 14:48:22 +0100
commite1fac246098da4237c1503b8657c37ec8ee34174 (patch)
treeda7ce92f837b7d01472ceef8cf6928435660fa07
parent0edd8652146098d32570e00c307b1d68f2079cee (diff)
cdn: fix script
-rwxr-xr-xcdn.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/cdn.sh b/cdn.sh
index a9b8dce..7422243 100755
--- a/cdn.sh
+++ b/cdn.sh
@@ -15,9 +15,8 @@ set -e
echo "[1/5] Deleting old CDN branch"
git branch -D cdn || true
-echo "[2/5] Creating new CDN branch"
-git checkout --orphan cdn
-git reset --hard
+echo "[2/5] Creating new CDN branch, moving all files to it"
+git checkout -b cdn
echo "[3/5] Removing all files except public/*"
dirs=$(find . -maxdepth 1 -type d -not -name public -not -name .git -not -name . -not -name ..)