From 28dfe2564c8f6bc4422b4d1eee7d707190bea7db Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 7 Jun 2016 02:05:28 +0300 Subject: Fix typos --- dh_runit | 2 +- postinst-runit | 3 +-- prerm-runit | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dh_runit b/dh_runit index 2e3414a..ba066d8 100755 --- a/dh_runit +++ b/dh_runit @@ -89,7 +89,7 @@ PKG: foreach my $pkg (@{$dh{DOPACKAGES}}) { } elsif ( -d $path) { doit('cp', '-r', $path, "$sv_dir/$name"); } - if ($enable -eq 'enable' && !$DH{NO_ENABLE}) { + if ($enable eq 'enable' && !$dh{NO_ENABLE}) { autoscript($pkg, 'postinst', 'postinst-runit', "s/#NAME#/$name/"); } autoscript($pkg, 'prerm', 'prerm-runit', "s/#NAME#/$name/"); diff --git a/postinst-runit b/postinst-runit index 3a51832..8b09a95 100644 --- a/postinst-runit +++ b/postinst-runit @@ -16,8 +16,7 @@ restart installation. EOF exit 1 fi -NAME=#NAME# -ln -s "/etc/sv/$NAME" "$SV_DIR/$NAME" +ln -s '/etc/sv/#NAME#' "$SV_DIR/" diff --git a/prerm-runit b/prerm-runit index 8dfa6b6..a919418 100644 --- a/prerm-runit +++ b/prerm-runit @@ -1 +1 @@ -rm -f /etc/service/#NAME# \ No newline at end of file +rm -f /etc/service/#NAME# -- cgit v1.2.3