Bisa / factorio-init

Factorio init script
MIT License
426 stars 86 forks source link

Chaned exit code of 'update' #148

Closed sebbi08 closed 5 years ago

sebbi08 commented 5 years ago

Chaned exit code of 'update' when there is no new version to make it posible to let an update check run all lets say 30 min and react on the exit code of the dry run

tmzasz commented 5 years ago

why have it exit "fail" when you could just use a combination of grep/awk to parse the results looking for the string "New Update"

tmzasz commented 5 years ago

run update and then run this on the output grep "New version" and if that returns something then a new version has been found no need to give it a "fail" code just have your automation script do something other than running a init script