Skip to content

Commit

Permalink
Improve error-handling for 'run outdated'
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic committed Mar 25, 2024
1 parent a97d73c commit 5a47d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .run/commands/outdated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ command_outdated() {

MATCHES=$(echo "$OUTDATED" | grep --file=<(echo "$PATTERNS"))
if [ $? == 0 ]; then
echo "$MATCHES" | awk '{ printf ( "%-25s %-15s -> %-15s\n", $1, $2, $3 ) }'
echo "$MATCHES" | sed 's/(!)//' | awk '{ printf ( "%-25s %-15s -> %-15s\n", $1, $2, $3 ) }'
elif [ $? == 1 ]; then
echo "No outdated constraints found"
else
Expand Down

0 comments on commit 5a47d2f

Please sign in to comment.