Skip to content

Commit

Permalink
fix bug "bad array subscript" when call docker.sh without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed May 2, 2024
1 parent 167e676 commit 35c5ea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ declare -A aliases=(
[csv]="px4_v1_14_0_cyphal_quadplane_vtol"
[cv8]="px4_v1_14_0_cyphal_octoplane_vtol"
)
if [[ -n "${aliases[$1]}" ]]; then
if [ $# -eq 0 ]; then
CMD="help"
elif [[ -n "${aliases[$1]}" ]]; then
CMD="${aliases[$1]}"
else
CMD=$1
Expand Down

0 comments on commit 35c5ea1

Please sign in to comment.