Fix init script and execute flags

This commit is contained in:
2025-09-30 18:33:45 +02:00
parent 2d48221e45
commit 0ebac65049
2 changed files with 5 additions and 1 deletions

6
init-workspace.sh Normal file → Executable file
View File

@@ -15,7 +15,11 @@ elif [ -n "$ZSH_VERSION" ]; then
command -v xargs > /dev/null && command -v readlink > /dev/null && export TGC_HAMMER_HOME=`dirname ${(%):-%x} | xargs readlink -f`
else
echo "ERROR: unknown shell"
elif [ -f "source.sh" ]; then
exit
fi
if [ -f "source.sh" ]; then
echo "Directory already seems to be workspace."
elif [ -f "init-workspace.sh" ]; then
echo "Cannot create workspace in TGC-Hammer directly, use different directory."

0
scripts/build_hammer.sh Normal file → Executable file
View File