Commit f64e271ed6cc3b8c93f1cec7c1d30d49dedb575d
1 parent
35b2a6cd
Exists in
master
and in
22 other branches
Plugins should be created with lowercase
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
script/noosfero-plugins
@@ -93,7 +93,7 @@ _disable(){ | @@ -93,7 +93,7 @@ _disable(){ | ||
93 | } | 93 | } |
94 | 94 | ||
95 | _new(){ | 95 | _new(){ |
96 | - plugin="$1" | 96 | + plugin=$(echo "$1" | tr '[:upper:]' '[:lower:]') |
97 | target="$available_plugins_dir/$plugin" | 97 | target="$available_plugins_dir/$plugin" |
98 | if [ -d "$target" ]; then | 98 | if [ -d "$target" ]; then |
99 | _say "There is already a plugin called $plugin" | 99 | _say "There is already a plugin called $plugin" |