File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ Run the script with the following command:
51
51
- ` 6 ` : Failed to build.
52
52
- ` 7 ` : Failed to install plugin.
53
53
- ` 8 ` : Failed to clean up.
54
+ - ` 9 ` : Failed to create a directory or file.
54
55
55
56
## License
56
57
Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ install_obsidian_plugin() {
51
51
52
52
local plugin_directory=" $vault /.obsidian/plugins/$plugin_id "
53
53
54
+ mkdir -p plugin_directory || {
55
+ echo " Error: failed to create Obsidian plugin directory $plugin_directory while installing Obsidian plugin $plugin_id into vault $vault !"
56
+ exit 9
57
+ }
58
+
54
59
case " ${obsidian_plugin_build_strategies[$plugin_id]} " in
55
60
" excalidraw" )
56
61
mv " $plugin_source /dist/main.js" " $plugin_directory " || {
You can’t perform that action at this time.
0 commit comments