Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit d11f69e

Browse files
Merge branch 'master' of github.com:DovnarAlexander/jelastic-docker-image
2 parents e27446b + d6d701a commit d11f69e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

entrypoint-github.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
4-
# To overwrite GitHub run command
5-
export HOME=/cli
4+
5+
export HOME=/cli # To overwrite GitHub run command
66

77
cd $HOME
8-
response=$(/cli/entrypoint.sh "$*")
8+
response=$(/cli/entrypoint.sh "$*" | jq --compact-output)
99
echo "::set-output name=output::$response"

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

55
response=$(echo n | /cli/jelastic/users/authentication/signin --login "$JELASTIC_USERNAME" --password "$JELASTIC_PASSWORD" --platformUrl "$JELASTIC_URL" > /dev/null
6-
/cli/jelastic/"$*" | sed '/./{H;$!d} ; x ; s/^[^{]*//g' | sed '/./{H;$!d} ; x ; s/[^}]*$//g' | jq
6+
/cli/jelastic/"$1" "${@:2}" | sed '/./{H;$!d} ; x ; s/^[^{]*//g' | sed '/./{H;$!d} ; x ; s/[^}]*$//g' | jq
77
)
88
echo "$response"

0 commit comments

Comments
 (0)