[FIX] script open terminal: ignore opening if path not exist

This commit is contained in:
Mathieu Benoit 2024-10-04 14:29:26 -04:00
parent dd6ca6d7a2
commit bce470879c

View file

@ -19,6 +19,9 @@ if [[ "${OSTYPE}" == "linux-gnu" ]]; then
cmd_after=";gnome-terminal --tab -- bash -c 'git status;bash';"
LONGCMD=""
for t in "${paths[@]}"; do
if [[ ! -e "${t}" ]]; then
continue
fi
if $first_iteration; then
LONGCMD+="${cmd_before}${t}${cmd_after_first}"
first_iteration=false