We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2ea40 commit a160724Copy full SHA for a160724
cmd/updater/update.sh
@@ -196,8 +196,8 @@ function get_updater_url() {
196
197
# check to see if the binary updater exists. if not, it will automatically the correct updater binary for the current platform
198
function check_for_updater() {
199
- # check if the updater binary exist.
200
- if [ -f "${SCRIPTPATH}/updater" ]; then
+ # check if the updater binary exist and is not empty.
+ if [[ -s "${SCRIPTPATH}/updater" && -f "${SCRIPTPATH}/updater" ]]; then
201
return 0
202
fi
203
get_updater_url
0 commit comments