Files
js-scripts/scripts/checkgitupdate.js
2025-04-05 16:57:26 +08:00

15 lines
260 B
JavaScript

#!/usr/bin/env runjs
var System = java.lang.System;
var main = () => {
var r = $STR($$.shell().commands('git', 'fetch', '--dry-run').mergeError().start()[0]);
if (r.trim().length > 0) {
System.exit(1);
}
System.exit(0);
};
main();