Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 0382ab4

Browse files
iworkertonivdv
authored andcommitted
Fixed bug with wrong quotes (#99)
1 parent e6833d2 commit 0382ab4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker-machine-nfs.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ checkMachinePresence ()
225225
{
226226
echoInfo "machine presence ... \t\t\t"
227227

228-
if [ "" = "$(docker-machine ls $2 --filter 'Name=^$1$' -q)" ]; then
228+
machine_name=$(docker-machine ls $2 --filter "Name=^$1$" -q)
229+
230+
if [ "" = "${machine_name}" ]; then
229231
echoError "Could not find the machine '$1'!"; exit 1;
230232
fi
231233

0 commit comments

Comments
 (0)