Skip to content

Commit a97d73c

Browse files
committed
Pull in latest updates from run-script-framework
1 parent 8080d1e commit a97d73c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.run/commands/outdated.sh

+19-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,26 @@ command_outdated() {
1515
echo ""
1616
echo "Checking for outdated constraints..."
1717
echo ""
18-
poetry show --outdated | grep --file=<(poetry show --tree | grep '^\w' | cut -d' ' -f1 | sed 's/.*/^&\\s/')
18+
19+
PATTERNS=$(poetry show --tree | grep '^\w' | cut -d' ' -f1 | sed 's/.*/^&\\s/')
20+
if [ $? != 0 ]; then
21+
echo "*** Failed to run 'poetry show --tree'"
22+
exit 1
23+
fi
24+
25+
OUTDATED=$(poetry show --outdated)
1926
if [ $? != 0 ]; then
20-
echo "*** Failed to check for outdated constraints"
27+
echo "*** Failed to run 'poetry show --outdated'"
28+
exit 1
29+
fi
30+
31+
MATCHES=$(echo "$OUTDATED" | grep --file=<(echo "$PATTERNS"))
32+
if [ $? == 0 ]; then
33+
echo "$MATCHES" | awk '{ printf ( "%-25s %-15s -> %-15s\n", $1, $2, $3 ) }'
34+
elif [ $? == 1 ]; then
35+
echo "No outdated constraints found"
36+
else
37+
echo "*** Failed to grep for outdated constraints"
2138
exit 1
2239
fi
2340
}

Changelog

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 0.1.50 unreleased
22

33
* Simplify GHA integration with coveralls.io.
4+
* Pull in latest updates from run-script-framework.
45

56
Version 0.1.49 18 Mar 2024
67

0 commit comments

Comments
 (0)