![](/img/trans.png)
[英]“sh: line 1: Moved: command not found” installing npm with curl | sh
[英]Sudo sh script with curl and command line argument
我正在嘗試運行一個 sudoed curled bash 腳本,該腳本接受命令行參數,但語法有問題。 使用這個,參數 ($0) 似乎沒有被腳本拾取。
sudo sh -c "$(curl -sSL https://s3-us-west-2.amazonaws.com/script/path/install.sh) argument"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.