Skip to content

Commit 7c0c444

Browse files
make linter happy
1 parent e461908 commit 7c0c444

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/restore.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ jobs:
8181
- name: Find backup file version
8282
id: file
8383
run: |
84-
version=${{ inputs.version }}
85-
size=${{ inputs.size }}
84+
version="${{ inputs.version }}"
85+
size="${{ inputs.size }}"
8686
V3_8_COMPATIBLE="3.6 3.7 3.8 3.9 3.10"
87-
8887
echo "$V3_8_COMPATIBLE" | tr " " '\n' | grep -F -q -x "$version"
89-
90-
if [ $? -eq 0 ]; then
91-
echo "Version $file_version is acceptable"
88+
exit_code="$?"
89+
if [ "$exit_code" -eq "0" ]; then
90+
echo "Version $version is acceptable"
9291
file_version=3.8
9392
echo "version=3.8" >> $GITHUB_OUTPUT
9493
echo "name=v$file_version-$size.tar.gz" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)