このコミットが含まれているのは:
テクニカル諏訪子 2018-03-09 20:09:45 +09:00
コミット 4682eee676
1個のファイルの変更10行の追加10行の削除

ファイルの表示

@ -150,9 +150,6 @@ export default {
command: ''
});
console.log('Line', this.line);
console.log('Res', this.result);
this.line.push({
active: true,
username: this.user,
@ -175,13 +172,16 @@ console.log('Res', this.result);
})
},
cd(pwd) {
if (pwd === '/fuck' || pwd === 'fuck') this.result.push({
active: true,
text: 'bash: cd: ' + pwd + ': このファイルまたはフォルダがありません。',
field: false,
password: false,
command: ''
});
if (pwd === '/fuck' || pwd === 'fuck') {
this.result.push({
active: true,
text: 'bash: cd: ' + pwd + ': このファイルまたはフォルダがありません。',
field: false,
password: false,
command: ''
});
return false;
}
if (!pwd.startsWith('/')) pwd = '/' + pwd;
this.pwd = pwd;