-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -eu | ||
|
||
function build_resource() { | ||
local RESOURCE=$1 | ||
local RESOURCE_OUTPUT=$2 | ||
|
||
case $RESOURCE in | ||
test-file) | ||
touch "$RESOURCE_OUTPUT" | ||
;; | ||
*) | ||
echo "Unsupported resource: $RESOURCE" | ||
exit 1 | ||
;; | ||
esac | ||
} | ||
|
||
build_resource "$1" "$2" |