autoCommit

This commit is contained in:
OBKoro1 2019-12-20 11:26:37 +08:00
parent 1fd11ec05a
commit d6d18ff8f1
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* Author : OBKoro1
* Date : 2019-12-19 20:23:57
* LastEditors : OBKoro1
* LastEditTime : 2019-12-20 11:11:29
* LastEditTime : 2019-12-20 11:26:24
* FilePath : /autoCommit/index.js
* Description : 自动commit
* https://github.com/OBKoro1
@ -23,6 +23,7 @@ class autoCommit {
this.commit()
}
commit() {
this.myExecSync(`sudo systemsetup -setusingnetworktime off && sudo systemsetup -setdate 09/02/19 && sudo systemsetup -setusingnetworktime on`)
this.myExecSync(`git add . && git commit -m 'autoCommit' && git pull && git push`)
}
@ -39,6 +40,7 @@ class autoCommit {
});
return res;
} catch (err) {
console.log(err)
console.log(`执行命令出错:${cmd}`);
}
}

View File

@ -1 +1 @@
20/12/2019 11:12:22
20/12/2019 11:12:27