Open fearenales opened 9 years ago
Multiple slashes should not matter. Did you run into any problems?
@ztombol It would not hurt having a cleaner implementation either
@ztombol bats is installed with no problems. The only issue is the prompted message:
Installed Bats to /usr/local//bin/bats
As @RomanSaveljev said, this is more about a cleaner implementation and a more polished output.
Oops! I missed that the path is echoed back to the user. Good job! :+1:
When installing
bats
in my local env, I used/usr/local/
as argument forinstall.sh
. The generated path forbats
installation was/usr/local//bin/bats
.I've just added a very simple logic in
install.sh
script to avoid this double slash, supporting both with and without trailing slash in the specified path.