-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- scipt om package aan te maken, wip
- Loading branch information
1 parent
9906cde
commit 9a0f5c0
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |