Skip to content

Commit

Permalink
Drop the useless sub-shell in status.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Dec 18, 2015
1 parent adc3fba commit 964bdc2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ fi
versions=( "${versions[@]%/}" )

for v in "${versions[@]}"; do
(
cd "$v"
serial="$(awk -F '=' '$1 == "SERIAL" { print $2; exit }' build-info.txt 2>/dev/null || true)"
[ "$serial" ] || serial='missing'
echo '- `ubuntu:'"$v"'`: '"$serial"
)
serial="$(awk -F '=' '$1 == "SERIAL" { print $2; exit }' "$v/build-info.txt" 2>/dev/null || true)"
[ "$serial" ] || serial='missing'
echo '- `ubuntu:'"$v"'`: '"$serial"
done

0 comments on commit 964bdc2

Please sign in to comment.