Skip to content

Commit

Permalink
More test edits
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 24, 2024
1 parent 026c3ff commit c2df00b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,15 @@ run_mustache()
$MO "$FILE" > "$TEMP_FILE"
# delete file if it is empty or only contains spaces
if ! grep -q '[^[:space:]]' "$TEMP_FILE" ; then
echo "Remove $FILE"
echo "Removing $FILE"
rm "$TEMP_FILE"
rm "$TARGET_FOLDER/$FILE"
else
echo "Copy $FILE"
if [[ -z "$RELATIVE_TARGET_FOLDER" ]]; then
echo "Updating $FILE"
else
echo "Copying $FILE"
fi
mv -f "$TEMP_FILE" "$TARGET_FOLDER/$FILE"
fi
done
Expand Down Expand Up @@ -112,6 +116,7 @@ else
echo "Outputting to current folder"
fi

echo ""
echo -n "Enter your Swift package name: "
read_input_with_default "$CLEAN_BASE_FOLDER"
export HB_PACKAGE_NAME=$READ_INPUT_RETURN
Expand All @@ -132,6 +137,8 @@ if [[ "$READ_INPUT_RETURN" == "yes" ]]; then
export HB_VSCODE_SNIPPETS="yes"
fi

echo ""

pushd $TEMPLATE_FOLDER > /dev/null

# Root level files
Expand All @@ -149,4 +156,5 @@ EOF

popd > /dev/null

echo ""
echo "Enter the folder $TARGET_FOLDER and run 'swift run' to build and run your server. Then open 'http://localhost:8080' in your web browser."

0 comments on commit c2df00b

Please sign in to comment.