initial commit
This commit is contained in:
15
distros/busybox/entrypoint.sh
Normal file
15
distros/busybox/entrypoint.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
ARGS="$@"
|
||||
|
||||
OUTPUT=$(sh -c "$ARGS")
|
||||
RESULT=$?
|
||||
echo "$OUTPUT"
|
||||
|
||||
#Output multiline strings.
|
||||
#https://trstringer.com/github-actions-multiline-strings/
|
||||
OUTPUT="${OUTPUT//'%'/'%25'}"
|
||||
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
|
||||
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
|
||||
echo "::set-output name=console::$OUTPUT"
|
||||
|
||||
exit $RESULT
|
||||
Reference in New Issue
Block a user