Skip to content

Commit

Permalink
- scipt om package aan te maken, wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen-trompetter committed Jan 2, 2025
1 parent 9906cde commit 9a0f5c0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions create-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

sushi_build_output_path=$PWD/fsh-generated/resources
echo $sushi_build_output_path

for arg in "$@";
do
name="${arg/=*/}"
value="${arg/${name}=/}"
case "${name}" in
--version-number)
[[ "${value}" == "${name}" ]] && echo "no version provided." && exit 1
VERSION_NUMBER="${value}"
;;
esac
done

[[ "${VERSION_NUMBER}" == "" ]] && echo "no version number was provided, use '--version-number' as an argument to specify the name of the version number, exiting." && exit 1
echo "$VERSION_NUMBER"
[[ ! -d "./${sushi_build_output_path}" ]] && echo "output path ${sushi_build_output_path} does not exist" && exit 1
[[ ! -e ${sushi_build_output_path}/*.json ]] && echo "no files found in output path '${sushi_build_output_path}'" && exit 1

0 comments on commit 9a0f5c0

Please sign in to comment.