簡體   English   中英

為什么我不能執行此腳本?

[英]Why can't I execute this script?

我正在嘗試執行一個字符串(實際上,這是一個較長的字符串的一部分,我將其拆分為不同的字符串。

我的錯誤消息是tr1.sh:3:tr1.sh:替代錯誤

#!/bin/bash

if [ ! -d ${HOME }/ trashbin  ]
then  mkdir ${HOME }/ trashbin
fi

刪除空格:

#!/bin/bash

if [ ! -d ${HOME}/trashbin  ]
then  mkdir ${HOME}/trashbin
fi

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM