scripts/systemd-autofs-restart.sh: fix variable name

Submitted by Adrian Reber on June 6, 2018, 8:05 a.m.

Details

Message ID 1528272305-31506-1-git-send-email-adrian@lisas.de
State Accepted
Series "scripts/systemd-autofs-restart.sh: fix variable name"
Commit 55d0f98fc9877161534f8a815b5326f2ec068278
Headers show

Commit Message

Adrian Reber June 6, 2018, 8:05 a.m.
From: Adrian Reber <areber@redhat.com>

The script checks if $NSENTER is executable and sets $NS_ENTER if not.
This seems to be a typo (once with '_' and once without).

Untested and not reproducible. It just looks wrong.

Signed-off-by: Adrian Reber <areber@redhat.com>
---
 scripts/systemd-autofs-restart.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh
index 1625502..b22078c 100755
--- a/scripts/systemd-autofs-restart.sh
+++ b/scripts/systemd-autofs-restart.sh
@@ -27,7 +27,7 @@  if [ ! -d "/proc/$CRTOOLS_INIT_PID" ]; then
 fi
 
 NS_ENTER=/bin/nsenter
-[ ! -x $NSENTER ] || NS_ENTER=/usr/bin/nsenter
+[ ! -x $NS_ENTER ] || NS_ENTER=/usr/bin/nsenter
 
 if [ ! -x $NS_ENTER ]; then
 	echo "$NS_ENTER binary not found"

Comments

Andrey Vagin June 20, 2018, 6:30 p.m.
Applied, thanks

On Wed, Jun 06, 2018 at 08:05:05AM +0000, Adrian Reber wrote:
> From: Adrian Reber <areber@redhat.com>
> 
> The script checks if $NSENTER is executable and sets $NS_ENTER if not.
> This seems to be a typo (once with '_' and once without).
> 
> Untested and not reproducible. It just looks wrong.
> 
> Signed-off-by: Adrian Reber <areber@redhat.com>
> ---
>  scripts/systemd-autofs-restart.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh
> index 1625502..b22078c 100755
> --- a/scripts/systemd-autofs-restart.sh
> +++ b/scripts/systemd-autofs-restart.sh
> @@ -27,7 +27,7 @@ if [ ! -d "/proc/$CRTOOLS_INIT_PID" ]; then
>  fi
>  
>  NS_ENTER=/bin/nsenter
> -[ ! -x $NSENTER ] || NS_ENTER=/usr/bin/nsenter
> +[ ! -x $NS_ENTER ] || NS_ENTER=/usr/bin/nsenter
>  
>  if [ ! -x $NS_ENTER ]; then
>  	echo "$NS_ENTER binary not found"
> -- 
> 1.8.3.1
>