Created
July 27, 2025 21:25
-
-
Save codebrainz/458764e4e337a4e50a0bf155cc17de62 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| MODE="raspi" | |
| ARGS=() | |
| for arg in "$@"; do | |
| case $arg in | |
| MODE=*) MODE="${arg#MODE=}" ;; | |
| *) ARGS+=("$arg") ;; | |
| esac | |
| done | |
| ./run_$MODE debug & | |
| ./debug ${ARGS[*]} | |
| #osascript <<EOF | |
| #tell application "Terminal" | |
| # do script "cd \"$PWD\"; ./run_$MODE debug" | |
| # do script "cd \"$PWD\"; ./debug ${ARGS[*]}" | |
| #end tell | |
| #EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment