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

Commit 6279b36

Browse files
committed
Try to fix broken box self-update, take 2
1 parent 5156cad commit 6279b36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/self-update

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ then
4141
fi
4242
sudo mv "${WPLIB_BOX_CLI_DIR}" "${WPLIB_BOX_CLI_DIR}-LAST" >> $WPLIB_BOX_CLI_DEBUG_LOG_FILE
4343
fi
44-
sudo mkdir -p ${WPLIB_BOX_CLI_DIR} >> $WPLIB_BOX_CLI_DEBUG_LOG_FILE
45-
sudo git clone -q ${WPLIB_BOX_SCRIPTS_REPO} ${WPLIB_BOX_CLI_DIR} >> $WPLIB_BOX_CLI_DEBUG_LOG_FILE
46-
cd ${WPLIB_BOX_CLI_DIR} >> $WPLIB_BOX_CLI_DEBUG_LOG_FILE
47-
sudo git checkout -q --force ${VERSION} >> $WPLIB_BOX_CLI_DEBUG_LOG_FILE
44+
sudo mkdir -p ${WPLIB_BOX_CLI_DIR}
45+
sudo git clone -q ${WPLIB_BOX_SCRIPTS_REPO} ${WPLIB_BOX_CLI_DIR} > /dev/nul
46+
cd ${WPLIB_BOX_CLI_DIR}
47+
sudo git checkout -q --force ${VERSION} > /dev/nul
4848

4949
if [ ! -f "${WPLIB_BOX_CLI_VERSION_FILE}" ]
5050
then

0 commit comments

Comments
 (0)