Skip to content

Commit ed5d9c5

Browse files
authored
Adjust b2 version check to use full path. (hestiacp#2416)
1 parent 4f6ce61 commit ed5d9c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ upgrade_b2_tool(){
552552
b2cli="/usr/local/bin/b2"
553553
b2lnk="https://github.com/Backblaze/B2_Command_Line_Tool/releases/download/v$b2_v/b2-linux"
554554
if [ -f "$b2cli" ]; then
555-
b2_version=$(b2 version | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
555+
b2_version=$($b2cli version | grep -o -E '[0-9].[0-9].[0-9]+' | head -1);
556556
if version_ge "$b2_version" "$b2_v"; then
557557
echo "[ * ] Backblaze CLI tool is up to date ($b2_v)..."
558558
else

0 commit comments

Comments
 (0)