+version file
This commit is contained in:
parent
8b7635d56a
commit
68bb45e1d2
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user