Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(project): fix launch script without region argument #1488

Merged
merged 1 commit into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/launch/mac/launch_iTerm.scpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
on run argv
set REGION to item 1 of argv
if not (count of argv) = 0
set REGION to item 1 of argv
else
set REGION to ""
end if
tell application "iTerm"
activate
set W to create window with default profile
Expand Down
6 changes: 5 additions & 1 deletion scripts/launch/mac/launch_terminal.scpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
on run argv
set REGION to item 1 of argv
if not (count of argv) = 0
set REGION to item 1 of argv
else
set REGION to ""
end if
tell application "Terminal"
activate
set ProjectRoot to "$(dirname $(dirname $(dirname $(dirname " & (POSIX path of (path to me)) & "))))"
Expand Down