feat: scripts
This commit is contained in:
14
scripts/checkgitupdate.js
Normal file
14
scripts/checkgitupdate.js
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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();
|
||||
|
||||
Reference in New Issue
Block a user