Skip to content

Commit e441825

Browse files
committed
reverse scheme detection ordering
1 parent a1bf982 commit e441825

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ if [[ -z "${SCHEME:-}" ]]; then
7979
grep -E '^\s+' |
8080
sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
8181

82-
# Check for the base scheme name
83-
if echo "$schemes" | grep -q "^${SAMPLE}Example$"; then
84-
SCHEME="${SAMPLE}Example"
8582
# Check for the OS-suffixed scheme name
86-
elif echo "$schemes" | grep -q "^${SAMPLE}Example (${OS})$"; then
83+
if echo "$schemes" | grep -q "^${SAMPLE}Example (${OS})$"; then
8784
SCHEME="${SAMPLE}Example (${OS})"
85+
# Check for the base scheme name
86+
elif echo "$schemes" | grep -q "^${SAMPLE}Example$"; then
87+
SCHEME="${SAMPLE}Example"
8888
else
8989
echo "Error: Could not find a suitable scheme for ${SAMPLE}Example in ${OS}."
9090
echo "Available schemes:"

0 commit comments

Comments
 (0)