diff options
author | Gurucharan Shetty <guru@ovn.org> | 2017-06-26 03:33:00 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2017-07-12 10:03:03 -0700 |
commit | ff6169cf00f6f711cf4ac4e3df2600c4dfd68ee9 (patch) | |
tree | f570ff5aa30586b1ee99e21fc275960a2b78619e /debian | |
parent | b4293a336d8ddee020217ff6addc38f19279bdb5 (diff) | |
download | openvswitch-ff6169cf00f6f711cf4ac4e3df2600c4dfd68ee9.tar.gz |
openvswitch-switch.postinst: Replace tabs by spaces
There was some inconsistency with some tabs and some spaces
used.
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'debian')
-rwxr-xr-x | debian/openvswitch-switch.postinst | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst index 246457249..126e8fe68 100755 --- a/debian/openvswitch-switch.postinst +++ b/debian/openvswitch-switch.postinst @@ -20,19 +20,19 @@ set -e case "$1" in configure) - DEFAULT=/etc/default/openvswitch-switch - TEMPLATE=/usr/share/openvswitch/switch/default.template - if ! test -e $DEFAULT; then - cp $TEMPLATE $DEFAULT - else - for var in $(awk -F'[ :]' '/^# [_A-Z0-9]+:/{print $2}' $TEMPLATE) - do - if ! grep $var $DEFAULT >/dev/null 2>&1; then - echo >> $DEFAULT - sed -n "/$var:/,/$var=/p" $TEMPLATE >> $DEFAULT - fi - done - fi + DEFAULT=/etc/default/openvswitch-switch + TEMPLATE=/usr/share/openvswitch/switch/default.template + if ! test -e $DEFAULT; then + cp $TEMPLATE $DEFAULT + else + for var in $(awk -F'[ :]' '/^# [_A-Z0-9]+:/{print $2}' $TEMPLATE) + do + if ! grep $var $DEFAULT >/dev/null 2>&1; then + echo >> $DEFAULT + sed -n "/$var:/,/$var=/p" $TEMPLATE >> $DEFAULT + fi + done + fi ;; abort-upgrade|abort-remove|abort-deconfigure) |