Skip to content

Commit 10490c3

Browse files
committed
use bash instead
1 parent 3e714c5 commit 10490c3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
# Define the pattern
44
# Updated to handle semantic versions with suffixes (like -beta, -alpha, etc.)
@@ -15,7 +15,7 @@ main() {
1515
if [[ $file == lib/* ]]; then
1616
continue
1717
fi
18-
if [[ $file == *$(basename $0)* ]]; then
18+
if [[ $file == *$(basename $0) ]]; then
1919
continue
2020
fi
2121

.github/workflows/wavs-image-version-verifier.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17+
- name: Install bash
18+
run: sudo apt-get install bash
19+
1720
- name: Make script executable
18-
run: chmod +x .github/single-wavs-image-verifier.sh
21+
run: chmod +x .github/single-wavs-image-verifier.bash
1922

2023
- name: Run script
21-
run: sh .github/single-wavs-image-verifier.sh
24+
run: bash .github/single-wavs-image-verifier.bash

0 commit comments

Comments
 (0)