From 62178a49cc9e4088019d426636657d9f2980d242 Mon Sep 17 00:00:00 2001 From: Guillaume Lambert Date: Mon, 8 Mar 2021 21:38:31 +0100 Subject: [COMMON] Fix a few bashisms pointed out by checkbashisms: - variable name HOSTNAME - source instead of . - variable increments - sleep with suffix And migrate a few shebangs to /bin/sh Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert Change-Id: I82981bcff17e88cf824935b841ce37a585ddde00 --- docs/master_nfs_node.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/master_nfs_node.sh') diff --git a/docs/master_nfs_node.sh b/docs/master_nfs_node.sh index 4a7a8dbc12..32574c9f29 100644 --- a/docs/master_nfs_node.sh +++ b/docs/master_nfs_node.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh usage () { echo "Usage:" @@ -23,7 +23,7 @@ sudo chown nobody:nogroup /dockerdata-nfs/ #Update the /etc/exports NFS_EXP="" for i in $@; do - NFS_EXP+="$i(rw,sync,no_root_squash,no_subtree_check) " + NFS_EXP="${NFS_EXP}$i(rw,sync,no_root_squash,no_subtree_check) " done echo "/dockerdata-nfs "$NFS_EXP | sudo tee -a /etc/exports -- cgit 1.2.3-korg