Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 2018c87

Browse files
committed
Bug fixes.
1 parent 79fb092 commit 2018c87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commands/self-update

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ fi
2121
if [ -d ${BASEDIR} ]
2222
then
2323
cd ${BASEDIR}
24-
sudo git clean -q -d -fx ""
25-
sudo git reset -q --hard $VERSION
24+
sudo git clean -q -d -fx "" 2>/dev/null
25+
sudo git reset -q --hard $VERSION 2>/dev/null
2626
sudo git pull 2>/dev/null
27-
sudo git checkout -q $VERSION
27+
sudo git checkout -q $VERSION 2>/dev/null
2828
else
2929
sudo git clone "#{WPLIB_BOX_SCRIPTS_REPO}" "${WPLIB_BOX_CLI_DIR}"
3030
fi

0 commit comments

Comments
 (0)