Skip to content

Commit 4b08069

Browse files
committed
Use quotes for path and version
1 parent a3ded2e commit 4b08069

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/Periphery/setup-and-run-periphery.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ update_and_run() {
3838
if [ -x "$PERIPHERY_PATH" ]; then
3939
echo "Executable found. Checking version..."
4040
# Get the current installed version
41-
CURRENT_VERSION=$($PERIPHERY_PATH version)
42-
41+
CURRENT_VERSION=$("$PERIPHERY_PATH" version)
42+
4343
# Compare the current version with the desired version
44-
if version_gt $PERIPHERY_VERSION $CURRENT_VERSION; then
44+
if version_gt "$PERIPHERY_VERSION" "$CURRENT_VERSION"; then
4545
echo "Current version ($CURRENT_VERSION) is older than $PERIPHERY_VERSION. Updating..."
4646
update_and_run "$@"
4747
else

0 commit comments

Comments
 (0)