CLI: enforce directory existence before linking on Linux (#3252)

Make `/usr/local/bin/` directory if not exists.
This commit is contained in:
2018-10-13 22:46:16 +08:00 committed by CHaBou
parent 436c37e89e
commit 6a262d0212

View file

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
mkdir -p /usr/local/bin
# Link to the CLI bootstrap # Link to the CLI bootstrap
ln -sf '/opt/${productFilename}/resources/bin/${executable}' '/usr/local/bin/${executable}' ln -sf '/opt/${productFilename}/resources/bin/${executable}' '/usr/local/bin/${executable}'