Skip to content

Commit

Permalink
fix: command line arguments parse
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Sep 5, 2023
1 parent 0cef9c5 commit 11df88c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
sparse-checkout: sd-installer.sh
sparse-checkout-cone-mode: false
- name: Yes
run: bash sd-installer.sh test y
run: bash sd-installer.sh 1

No-Test:
runs-on: macos-latest
Expand All @@ -26,4 +26,4 @@ jobs:
sparse-checkout: sd-installer.sh
sparse-checkout-cone-mode: false
- name: No
run: bash sd-installer.sh test n
run: bash sd-installer.sh 2
1 change: 0 additions & 1 deletion sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ brew_installer_path="$tmp_path/brew_installer.sh"
test_mode=0 # Only for test. 0 for no test, 1 for yes-test, 2 for no-test

# Parse command line arguments
test_mode=$1
while [[ $# -gt 0 ]]; do
case "$1" in
-0 | -1 | -2)
Expand Down

0 comments on commit 11df88c

Please sign in to comment.