Skip to content

Commit

Permalink
Rename array to prevent shellcheck bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Dec 8, 2022
1 parent 2245fe8 commit 63976d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup/tue-functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1296,16 +1296,16 @@ function _tue-repos-do

local mem_pwd
mem_pwd=${PWD}
local -a cmd
cmd=("$@")
local -a cmd_array
cmd_array=("$@")

{ [ -n "$TUE_DIR" ] && cd "$TUE_DIR"; } || { echo -e "TUE_DIR '$TUE_DIR' does not exist"; return 1; }
echo -e "\e[1m[tue-env]\e[0m"
eval "${cmd[*]}"
eval "${cmd_array[*]}"

{ [ -n "$TUE_ENV_TARGETS_DIR" ] && cd "$TUE_ENV_TARGETS_DIR"; } || { echo -e "TUE_ENV_TARGETS_DIR '$TUE_ENV_TARGETS_DIR' does not exist"; return 1; }
echo -e "\e[1m[tue-env-targets]\e[0m"
eval "${cmd[*]}"
eval "${cmd_array[*]}"

local repos_dir
repos_dir=$TUE_ENV_DIR/repos/github.com/tue-robotics
Expand All @@ -1321,7 +1321,7 @@ function _tue-repos-do
then
cd "$repo_dir" || { echo -e "Directory '$TUE_ENV_TARGETS_DIR' does not exist"; return 1; }
echo -e "\e[1m[${repo%.git}]\e[0m"
eval "${cmd[*]}"
eval "${cmd_array[*]}"
fi
done

Expand Down

0 comments on commit 63976d9

Please sign in to comment.