bash, command not found [duplicate]

Add a space after [ and before ].

[ -d $1 ]
 ^     ^

Leave a Comment