Skip to content

Commit

Permalink
Clarify arg modification loop comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AJGranowski committed Sep 29, 2024
1 parent 8fdfe3d commit b7109bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/user-mirror
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ container_create() {
fi
}

# Parse options
# Parse options.
while [ $# -gt 0 ]; do
case $1 in
--docker)
Expand Down Expand Up @@ -56,7 +56,7 @@ while [ $# -gt 0 ]; do
shift;
done

# Parse the command if no engine declared
# Parse the command if no engine declared.
if [ -z "$COMPOSE_ENGINE" ] || [ -z "$CONTAINER_ENGINE" ]; then
case $1 in
docker-compose)
Expand All @@ -78,7 +78,7 @@ if [ -z "$COMPOSE_ENGINE" ] || [ -z "$CONTAINER_ENGINE" ]; then
esac
fi

# Change exec/run to create if not using compose
# Change "exec" and "run" to "create" if this is not a compose command.
COMPOSE_FILES="";
first_iteration=true;
search_for_replace=4;
Expand All @@ -104,7 +104,7 @@ for arg do
;;
esac

# Decrement for non-option arguments
# Decrement for non-option arguments.
case $arg in
-*)
;;
Expand Down Expand Up @@ -160,7 +160,7 @@ EOF

resolved_node_destination="$(echo "$node_destination" | sed -e "s|^${edge_destination}/|${edge_source}/|g")";
if [ "$resolved_node_destination" = "$node_destination" ]; then
# Skip if no resolution was made
# Skip if no resolution was made.
continue;
fi

Expand Down Expand Up @@ -216,7 +216,7 @@ for arg do
;;
esac

# Decrement for non-option arguments
# Decrement for non-option arguments.
case $arg in
-*)
;;
Expand Down

0 comments on commit b7109bf

Please sign in to comment.