Skip to content

Commit 1767d69

Browse files
fix: improve error handling in install script
1 parent 383a4dc commit 1767d69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install-cli.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
set -u
2+
set -eu
33

44
# This script downloads the OS- and architecture-specific Kosli CLI binary,
55
# extracts it, and moves the executable to a directory in your PATH.
@@ -111,4 +111,5 @@ done
111111
echo ""
112112
echo "Error: Could not install Kosli CLI."
113113
echo "Please move the '$FILE_NAME' executable manually to a directory in your \$PATH."
114+
echo "For example, you can run: sudo mv \"$FILE_NAME\" /usr/local/bin/"
114115
exit 1

0 commit comments

Comments
 (0)