Skip to content

Commit

Permalink
fix installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Sep 26, 2021
1 parent b765c45 commit 47255a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/images/install-pre-1.16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2754,8 +2754,7 @@ chmod +x /usr/local/bin/kubectl-ko
echo "-------------------------------"
echo ""

echo ":$PATH:" | grep -q ":/usr/local/bin:"
if [ $? != 0 ]; then
if ! sh -c "echo \":$PATH:\" | grep -q \":/usr/local/bin:\""; then
echo "Tips:Please join the /usr/local/bin to your PATH. Temporarily, we do it for this execution."
export PATH=/usr/local/bin:$PATH
echo "-------------------------------"
Expand Down
3 changes: 1 addition & 2 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2827,8 +2827,7 @@ chmod +x /usr/local/bin/kubectl-ko
echo "-------------------------------"
echo ""

echo ":$PATH:" | grep -q ":/usr/local/bin:"
if [ $? != 0 ]; then
if ! sh -c "echo \":$PATH:\" | grep -q \":/usr/local/bin:\""; then
echo "Tips:Please join the /usr/local/bin to your PATH. Temporarily, we do it for this execution."
export PATH=/usr/local/bin:$PATH
echo "-------------------------------"
Expand Down

0 comments on commit 47255a1

Please sign in to comment.