Skip to content

Commit

Permalink
Merge pull request #1123 from ragnarpa/fix-devspace-install-from-npm-…
Browse files Browse the repository at this point in the history
…on-macos

Fix devspace install from npm on macos
  • Loading branch information
Lukas Gentele authored Jun 23, 2020
2 parents 97b6c20 + 8a0ca70 commit 93e3b71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/npm/bin/devspace
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env sh

BINARY=$(command -v devspace)
STAT=$(stat --printf="%s" "$BINARY" 2>/dev/null)

if echo "${OSTYPE}" | grep -q "darwin.*"; then
STAT=$(stat -L -f%z "$BINARY" 2>/dev/null)
else
STAT=$(stat --printf="%s" "$BINARY" 2>/dev/null)
fi

if [ ! -f "$BINARY" ] || [ "$STAT" -lt 10000 ]; then
echo "Finishing installation of DevSpace CLI"
Expand Down

0 comments on commit 93e3b71

Please sign in to comment.