From d1846ffd80974fb40393ebb27c38328c461e35c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=83?= Date: Sat, 13 Oct 2018 22:46:16 +0800 Subject: [PATCH] CLI: enforce directory existence before linking on Linux (#3252) Make `/usr/local/bin/` directory if not exists. --- build/linux/after-install.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/linux/after-install.tpl b/build/linux/after-install.tpl index 7a39c2b8..70245d60 100644 --- a/build/linux/after-install.tpl +++ b/build/linux/after-install.tpl @@ -1,4 +1,6 @@ #!/bin/bash +mkdir -p /usr/local/bin + # Link to the CLI bootstrap -ln -sf '/opt/${productFilename}/resources/bin/${executable}' '/usr/local/bin/${executable}' \ No newline at end of file +ln -sf '/opt/${productFilename}/resources/bin/${executable}' '/usr/local/bin/${executable}'