106106}
107107
108108function enableNFS {
109- echo " Setting up nfs ..."
109+ echo " Setting up NFS ..."
110110 U=` id -u`
111111 G=` id -g`
112112
@@ -122,7 +122,7 @@ function enableNFS {
122122 echo " Restarting nfsd..."
123123 sudo nfsd restart
124124
125- echo " You should now restarting docker to ensure NFS mounts works..."
125+ echo " You should restart docker to ensure NFS mounts works..."
126126}
127127
128128bold=$( tput bold)
@@ -147,7 +147,7 @@ Commands:
147147 run the command.
148148
149149 nfs:enable
150- Enabled support for NFS shares (preformance boots on macs )
150+ Enable support for NFS shares (performance boost on Macs )
151151
152152 sync
153153 Sync both database and files.
@@ -221,7 +221,7 @@ Commands:
221221 Stop and remove containers, networks, images, and volumes
222222
223223 version
224- Display this tools current version
224+ Display this tool's current version
225225
226226 *
227227 Pass command and arguments to `docker-compose` and
@@ -266,20 +266,20 @@ if [[ "$#" -gt "0" && "$1" == "template:install" ]]; then
266266 exit
267267fi
268268
269- # Allow enabled NFS without existence of docker-compose.yml.
270- if [[ " $1 " == " nfs:enable" ]]; then
269+ # Allow nfs:enable without existence of docker-compose.yml.
270+ if [[ " $# " -gt " 0 " && " $ 1" == " nfs:enable" ]]; then
271271 enableNFS
272272 exit
273273fi
274274
275275# Allow version without existence of docker-compose.yml.
276- if [[ " $1 " == " version" ]]; then
276+ if [[ " $# " -gt " 0 " && " $ 1" == " version" ]]; then
277277 echo Version: ${VERSION}
278278 exit
279279fi
280280
281281# Allow help without existence of docker-compose.yml.
282- if [[ " $1 " == " --help" ]]; then
282+ if [[ " $# " -gt " 0 " && " $ 1" == " --help" ]]; then
283283 usage
284284 exit
285285fi
0 commit comments