Skip to content

Commit

Permalink
chore: generate.sh: use a dynamic folder rather than Pascal's home :P
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Sep 21, 2024
1 parent fe582af commit fcceda7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ applyModules() {
-X POST \
-H "accept: */*" \
-H "Content-Type: application/json" \
-d @"$payload" \
-d "$payload" \
"http://localhost:7471""$api""

local status_code=$(curl -o /dev/null -s -w "%{http_code}\n" \
-X POST \
-H "accept: */*" \
-H "Content-Type: application/json" \
-d @"$payload" \
-d "$payload" \
"http://localhost:7471""$api")

if [[ $status_code == '40'* || $status_code == '50'* ]]; then
Expand All @@ -39,7 +39,7 @@ if [ "$#" -ne 1 ]; then
fi

version=$1
payload=litesample.json
payload="$(sed -e "s?JHIPSTER_LITE_SAMPLE_APP_FOLDER?$(pwd)?g" litesample.json)"

echo "*** Git: update project..."
git switch $GIT_MAIN_BRANCH
Expand Down
2 changes: 1 addition & 1 deletion litesample.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projectFolder": "/home/pgrimaud/projects/jhipster/jhipster-lite-sample-app",
"projectFolder": "JHIPSTER_LITE_SAMPLE_APP_FOLDER",
"commit": false,
"parameters": {
"projectName": "JHipster Lite Sample Application",
Expand Down

0 comments on commit fcceda7

Please sign in to comment.