Many fixes on code quality and CI #129

Merged
metal3d merged 21 commits from develop into master 2025-07-06 13:37:08 +00:00
Showing only changes of commit b47b956798 - Show all commits

View File

@@ -35,8 +35,8 @@ if [ -z "$INSTALL_PATH" ]; then
fi fi
# ensure that $INSTALL_PATH is in the PATH # ensure that $INSTALL_PATH is in the PATH
if ! echo $PATH | grep -q $INSTALL_PATH; then if ! echo "$PATH" | grep -q "$INSTALL_PATH"; then
echo "Sorry, $INSTALL_PATH is not in the PATH" echo "Sorry, ${INSTALL_PATH} is not in the PATH"
echo "Please, add it to your PATH in your shell configuration file" echo "Please, add it to your PATH in your shell configuration file"
echo "then restart your shell and run this script again" echo "then restart your shell and run this script again"
exit 1 exit 1
@@ -58,8 +58,8 @@ echo "Downloading $BIN_URL"
T=$(mktemp -u) T=$(mktemp -u)
curl -SL -# $BIN_URL -o $T || (echo "Failed to download katenary" && rm -f $T && exit 1) curl -SL -# $BIN_URL -o $T || (echo "Failed to download katenary" && rm -f $T && exit 1)
mv $T $INSTALL_PATH/katenary mv "$T" "${INSTALL_PATH}/katenary"
chmod +x $INSTALL_PATH/katenary chmod +x "${INSTALL_PATH}/katenary"
echo echo
echo "Installed to $INSTALL_PATH/katenary" echo "Installed to $INSTALL_PATH/katenary"
echo "Installation complete! Run 'katenary help' to get started." echo "Installation complete! Run 'katenary help' to get started."