[COMMON] Revert "[COMMON] Fix a few bashisms"
[oom.git] / docs / master_nfs_node.sh
index 32574c9..4a7a8db 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 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="${NFS_EXP}$i(rw,sync,no_root_squash,no_subtree_check) "
+  NFS_EXP+="$i(rw,sync,no_root_squash,no_subtree_check) "
 done
 echo "/dockerdata-nfs "$NFS_EXP | sudo tee -a /etc/exports