mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
fixed a bug in install.sh script in which default install directory /usr/local/bin was missing and not created
Signed-off-by: Amir Malka <amirm@armosec.io>
This commit is contained in:
@@ -54,6 +54,11 @@ for pdir in ${PATH//:/ }; do
|
||||
fi
|
||||
done
|
||||
|
||||
# Create install dir if it does not exist
|
||||
if [ ! -d "$install_dir" ]; then
|
||||
$SUDO mkdir -p $install_dir
|
||||
fi
|
||||
|
||||
chmod +x $OUTPUT 2>/dev/null
|
||||
$SUDO rm -f /usr/local/bin/$KUBESCAPE_EXEC 2>/dev/null || true # clearning up old install
|
||||
$SUDO cp $OUTPUT $install_dir/$KUBESCAPE_EXEC
|
||||
|
||||
Reference in New Issue
Block a user