We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee9ff77 commit ee6861dCopy full SHA for ee6861d
1 file changed
scripts/check-restored-packages.sh
@@ -1,12 +1,12 @@
1
#!/bin/bash
2
set -e
3
4
-# Check if restored-packages.txt is being modified
5
-if ! git diff --cached --name-only | grep -q "restored-packages.txt"; then
+if [ ! -f "withdrawn-packages.txt" ] || [ ! -f "restored-packages.txt" ]; then
6
exit 0
7
fi
8
9
-if [ ! -f "withdrawn-packages.txt" ] || [ ! -f "restored-packages.txt" ]; then
+# Check if restored-packages.txt is being modified
+if ! git diff --cached --name-only | grep -q "restored-packages.txt"; then
10
11
12
0 commit comments