diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-12-31 10:37:38 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-12-31 10:37:38 -0300 |
commit | f4ca036eec840d135c74be97e9cc594569d6c32d (patch) | |
tree | b21c2ff2229cfde5f1ca6d6e2d9f11468f1cd3b7 /lib | |
parent | cdf470e3aaf5983ea10009c8b5fc457491b14c29 (diff) | |
download | hydra-f4ca036eec840d135c74be97e9cc594569d6c32d.tar.gz hydra-f4ca036eec840d135c74be97e9cc594569d6c32d.tar.bz2 |
Fix: hydra_yaml_param regexp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/deploy | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy index ed281d1..84a9fda 100644 --- a/lib/hydra/deploy +++ b/lib/hydra/deploy @@ -130,9 +130,10 @@ function hydra_yaml_param { local param="$1" local file="$2" - #grep "^$param: " $file | cut -d ' ' -f 2 | sed -e "s/'//g" -e 's/"//g' - #grep "^$param" $file | sed -e "s/^$param//" | cut -d ':' -f 2 | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" - grep "^$param:[^:]" $file | sed -e "s/^$param://" | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" + #grep "^$param: " $file | cut -d ' ' -f 2 | sed -e "s/'//g" -e 's/"//g' + #grep "^$param" $file | sed -e "s/^$param//" | cut -d ':' -f 2 | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" + #grep "^$param:[^:]" $file | sed -e "s/^$param://" | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" + grep "^$param *:[^:]" $file | sed -e "s/^$param *://" | sed -e "s/'//g" -e 's/"//g' -e "s/ //g" } # Create puppet folder structure |