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 be8b5ea commit 26a355d
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 @@ -2436,8 +2436,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 @@ -2658,8 +2658,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 26a355d

Please sign in to comment.