diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-15 14:48:22 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-15 14:48:22 +0100 |
| commit | e1fac246098da4237c1503b8657c37ec8ee34174 (patch) | |
| tree | da7ce92f837b7d01472ceef8cf6928435660fa07 | |
| parent | 0edd8652146098d32570e00c307b1d68f2079cee (diff) | |
cdn: fix script
| -rwxr-xr-x | cdn.sh | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 ..) |
