10 lines
274 B
Bash
10 lines
274 B
Bash
|
#!/bin/sh
|
||
|
# -*- mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
||
|
# filter
|
||
|
ROLE=base
|
||
|
# extra cleanups to bash from yaml_to_bash
|
||
|
sed -e '/\[/s@, @ @g' \
|
||
|
-e '/\[/s@\([^"]\)u"@\1"@g' -e "/\[/s@\([^']\)u'@\1'@g" \
|
||
|
-e 's@="*\[\(.*\)\]@=(\1)@' -e "s@='*\[\(.*\)\]@=(\1)@"
|
||
|
|