diff options
Diffstat (limited to 'generic-resource-api/model/swagger/fixModuleUri.sh')
-rwxr-xr-x | generic-resource-api/model/swagger/fixModuleUri.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generic-resource-api/model/swagger/fixModuleUri.sh b/generic-resource-api/model/swagger/fixModuleUri.sh new file mode 100755 index 00000000..fae3872c --- /dev/null +++ b/generic-resource-api/model/swagger/fixModuleUri.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +mv $2 $2.backup +cat $2.backup | sed -e 's/'$1':/_&/1' -e 's/\([^_]\)'$1':/\//g' -e 's/_\('$1':\)/\1/' > $2 +rm $2.backup |