Skip to content

Commit cd31407

Browse files
committed
add script run example
1 parent 79bc2c3 commit cd31407

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ purge: confirm # Clean up all local dev artifacts (node_modules, etc.)
2727
pr: # Create a GitHub Pull Request via https://cli.github.com/
2828
@gh pr create
2929

30+
script: # Run .sh script and pass parameters
31+
@./script.sh $(args)
32+
3033
push: arg-target check-dotenv
3134
@echo "Deploying to $(target).."
3235
@sleep 1

script.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
4+
main() {
5+
first=$1
6+
second=$2
7+
echo "hey, one is ($first), and two is ($second)"
8+
}
9+
10+
main "$@"

0 commit comments

Comments
 (0)