Solved: #!/bin/bash function run_cmd() { cmd=$1 eval $cmd if [[ $? -eq 0 ]]; then return fi echo "Failed to execute $cmd" exit 1 //This.
確定! 回上一頁