[FIX] script open terminal: ignore opening if path not exist
This commit is contained in:
parent
dd6ca6d7a2
commit
bce470879c
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ if [[ "${OSTYPE}" == "linux-gnu" ]]; then
|
||||||
cmd_after=";gnome-terminal --tab -- bash -c 'git status;bash';"
|
cmd_after=";gnome-terminal --tab -- bash -c 'git status;bash';"
|
||||||
LONGCMD=""
|
LONGCMD=""
|
||||||
for t in "${paths[@]}"; do
|
for t in "${paths[@]}"; do
|
||||||
|
if [[ ! -e "${t}" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
if $first_iteration; then
|
if $first_iteration; then
|
||||||
LONGCMD+="${cmd_before}${t}${cmd_after_first}"
|
LONGCMD+="${cmd_before}${t}${cmd_after_first}"
|
||||||
first_iteration=false
|
first_iteration=false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue