Commit 6cad8f9198141452efd3d80d7171ca30571de788
1 parent
92a3d45e
Exists in
master
and in
29 other branches
Missed global flag in regex replace
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
script/noosfero-plugins
... | ... | @@ -103,7 +103,7 @@ _new(){ |
103 | 103 | template="$available_plugins_dir/template" |
104 | 104 | mkdir "$target" |
105 | 105 | |
106 | - plugin_name=$(echo "$plugin" | sed -e 's/^./\u&/; s/_\(.\)/\u\1/') | |
106 | + plugin_name=$(echo "$plugin" | sed -e 's/^./\u&/; s/_\(.\)/\u\1/g') | |
107 | 107 | for source_file in $(find "$template" -type f); do |
108 | 108 | target_file=$(echo "$source_file" | sed -e "s/template/$plugin/g") |
109 | 109 | mkdir -p $(dirname "$target_file") | ... | ... |