Skip to content

Commit 784755e

Browse files
bump rc version
1 parent 2abdd46 commit 784755e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

core/pioreactor/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Append ".dev0" if a dev version
66
# Append "rc0" if a rc version
77
# No zero padding!
8-
__version__ = "26.3.3rc0"
8+
__version__ = "26.3.3rc2"
99

1010

1111
def get_hardware_version() -> tuple[int, int] | tuple[int, int, str] | None:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -xeu
4+
5+
export LC_ALL=C
6+
7+
# Lower bound version
8+
min_version="26.3.0"
9+
10+
# Get the current version of pio
11+
current_version=$(sudo -u pioreactor -i pio version)
12+
13+
# Use sorting to determine if the current version is less than the minimum version
14+
is_valid=$(printf "%s\n%s" "$current_version" "$min_version" | sort -V | head -n1)
15+
16+
# If the smallest version isn't the minimum version, then current version is too low
17+
if [ "$is_valid" != "$min_version" ]; then
18+
sudo -u pioreactor -i pio log -l ERROR -m "Version error: installed version $current_version is lower than the minimum required version $min_version."
19+
exit 1
20+
fi
21+
22+
echo "Version check passed: $current_version"

0 commit comments

Comments
 (0)