Skip to content

Commit

Permalink
Merge pull request #1 from nevinee/master
Browse files Browse the repository at this point in the history
1
  • Loading branch information
mitsukileung authored Mar 7, 2021
2 parents ec7a6a4 + 419d7b5 commit af8fbac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion panel/public/run.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h4>运行日志</h4>
}
editor.setValue('');

const cmd = this.id === 'git_pull' ? 'bash git_pull' : this.id === 'export_sharecodes' ? 'bash export_sharecodes' : `bash jd ${this.id}`;
const cmd = ['git_pull', 'export_sharecodes'].includes(this.id) ? `bash ${this.id}` : `bash jd ${this.id}`;
$.post('./runCmd', {cmd: cmd}, function (data) {
editor.setValue(data.msg);

Expand Down
1 change: 1 addition & 0 deletions panel/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ function getLastModifyFilePath(dir) {
var app = express();
app.use(session({
secret: 'secret',
name: `connect.${Math.random()}`,
resave: true,
saveUninitialized: true
}));
Expand Down

0 comments on commit af8fbac

Please sign in to comment.