Skip to content

Commit a160724

Browse files
committed
Be resilient to an empty updater binary.
1 parent fa2ea40 commit a160724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/updater/update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ function get_updater_url() {
196196
197197
# check to see if the binary updater exists. if not, it will automatically the correct updater binary for the current platform
198198
function check_for_updater() {
199-
# check if the updater binary exist.
200-
if [ -f "${SCRIPTPATH}/updater" ]; then
199+
# check if the updater binary exist and is not empty.
200+
if [[ -s "${SCRIPTPATH}/updater" && -f "${SCRIPTPATH}/updater" ]]; then
201201
return 0
202202
fi
203203
get_updater_url

0 commit comments

Comments
 (0)