浏览代码

Unquoted rm parameters

Carlos Fenollosa 12 年之前
父节点
当前提交
28aa6a7842
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bb.sh

+ 1 - 1
bb.sh

@@ -590,7 +590,7 @@ reset() {
     echo "Are you sure you want to delete all blog entries? Please write \"Yes, I am!\" "
     read line
     if [ "$line" == "Yes, I am!" ]; then
-        rm "*.html" "*.css" "*.rss"
+        rm *.html *.css *.rss
         echo "Deleted all posts, stylesheets and feeds."
     else
         echo "Phew! You dodged a bullet there. Nothing was modified."