Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
fix: sanitize input_source for slim
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Jun 14, 2021
1 parent 45790a6 commit 07b2c25
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
# limitations under the License.
# ########################################################################


SOURCE_REGEX='^.*/$'
if [[ $INPUT_SOURCE =~ $SOURCE_REGEX ]];
then
echo Removing trailing / from INPUT_SOURCE slim is picky
INPUT_SOURCE=$(echo $INPUT_SOURCE | sed 's/\(.*\)\//\1/')
fi
slim generate-manifest $INPUT_SOURCE --update >/tmp/app.manifest || true
cp /tmp/app.manifest $INPUT_SOURCE/app.manifest
mkdir -p build/package/splunkbase
Expand Down

0 comments on commit 07b2c25

Please sign in to comment.