2017-08-22 45 views
0

我正在運行一個腳本,如./ci.sh push[dev1],我得到的響應如zsh: no matches found: push[dev1]。我試圖將別名放入.zshrc中,但不是愉快的喜悅。zsh:找不到匹配項:push [dev1]

我的.zshrc文件:

alias push='noglob push' 
alias git='noglob git' 
alias jake='noglob jake' 
alias task='noglob task' 
alias branch='noglob branch' 
alias gp='git push'` 

另外的任務從jakefile.js:

desc('Push commits to integration machine for validation.'); 
    task('push', ['status'], (branch) => { 
    if (!branch) { 
    console.log(
     'This command will push your code to the integration machine. Pass your\n' + 
     'branch name as a parameter (e.g., \'push[workstation_name]\').\n' 
    ); 
    fail('No branch provided'); 
    } 
    run([ 
    'git push origin ' + branch 
    ],() => { 
    console.log('\nOK. Current branch has been copied to integration machine.'); 
    complete(); 
    }); 
}, { async: true }); 

和文件ci.sh包含:

#!/bin/sh 
. build/scripts/run_jake.sh -f build/scripts/ci.jakefile.js $* 

感謝您的幫助。

回答

0

只是簡單地逃避括號

./ci.sh push\[dev1\]