added 260907 version of worker toolkit
This commit is contained in:
18
worker-toolkit-flaredown/repo/unzip-git.sh
Executable file
18
worker-toolkit-flaredown/repo/unzip-git.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user