+version file

This commit is contained in:
m3tam3re 2025-04-03 09:36:18 +02:00
parent 8b7635d56a
commit 68bb45e1d2

View File

@ -20,8 +20,11 @@ fi
setup_from_template() { setup_from_template() {
local TEMPLATE=starter local TEMPLATE=starter
local DIR_NAME="self-host-playbook" local DIR_NAME="self-host-playbook"
local CURRENT_DIR=$(basename "$PWD")
if [ -d "$DIR_NAME" ]; then if [ "$CURRENT_DIR" = "$DIR_NAME" ]; then
echo "📂 Already in $DIR_NAME directory, continuing..."
elif [ -d "$DIR_NAME" ]; then
echo "📂 Directory '$DIR_NAME' already exists" echo "📂 Directory '$DIR_NAME' already exists"
read -p "Do you want to proceed in the existing directory? (y/N) " -n 1 -r read -p "Do you want to proceed in the existing directory? (y/N) " -n 1 -r
echo echo