Docker

Docker

Made by DeepSource

Detected use of $ in the iterator name of a for loop DOK-SC1086

Bug risk
Major

The for loop expects the variable's name, not its value (and the name can not be specified indirectly).

Bad Practice

for $var in *
do
  echo "$var"
done

Recommended

for var in *
do
  echo "$var"
done