moved and edited git folder scripts

This commit is contained in:
2026-09-08 20:31:18 -04:00
parent 97aca37663
commit cba7e16edc
4 changed files with 72 additions and 32 deletions

View File

@@ -1,18 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [ ! -f GITFOLDER.zip ]; then
echo "GITFOLDER.zip not found, nothing to do." >&2
exit 1
fi
if [ -d .git ]; then
echo ".git folder already exists, refusing to overwrite." >&2
exit 1
fi
unzip -q GITFOLDER.zip
echo "Unzipped GITFOLDER.zip into .git folder."

View File

@@ -1,14 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [ ! -d .git ]; then
echo ".git folder not found, nothing to do." >&2
exit 1
fi
zip -rq GITFOLDER.zip .git
rm -rf .git
echo "Zipped .git into GITFOLDER.zip and removed .git folder."