@cryptotaxi247 / kubo / commits / a59b47e09

Fix bin/check_gx_program on Windows where gx -v outputs full path

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>

Jakub Sztandera committed Feb 14, 2016 at 23:20 UTC a59b47e093717161b4a640714659f87848956593
1 file changed +1 -1
bin/check_gx_program
+1 -1
@@ -85,6 +85,6 @@ type "$GX_PROGRAM_NAME" >/dev/null 2>&1 || die_upgrade "Program $GX_PROGRAM_NAME
85
86 VERS_STR=$($GX_PROGRAM_NAME -v 2>&1) || die "'$GX_PROGRAM_NAME -v' failed with output: $VERS_STR"
87
88 -GX_CUR_VERSION=$(expr "$VERS_STR" : "$GX_PROGRAM_NAME version \(.*\)") || die "Invalid '$GX_PROGRAM_NAME -v' output: $VERS_STR"
88 +GX_CUR_VERSION=$(expr "$VERS_STR" : ".*$GX_PROGRAM_NAME.* version \(.*\)") || die "Invalid '$GX_PROGRAM_NAME -v' output: $VERS_STR"
89
90 check_at_least_version "$GX_MIN_VERSION" "$GX_CUR_VERSION" "$GX_PROGRAM_NAME"