2016-12-13 7 views

答えて

5

ダウンロードされているシェルスクリプトに引数を渡すためbashを起動しているときは、-sオプションを使用する必要があります。man bash 1として

wget -O - http://example.com/myscript.sh | bash -s 'arg1' 'arg2' 

-s If the -s option is present, or if no arguments remain after option processing, 
    then commands are read from the standard input. This option allows 
    the positional parameters to be set when invoking an interactive shell. 
関連する問題