@blueprintit/shop-os-install 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/shop-os-install.js +10 -7
- package/package.json +1 -1
package/bin/shop-os-install.js
CHANGED
|
@@ -734,13 +734,16 @@ async function main() {
|
|
|
734
734
|
rl.close();
|
|
735
735
|
fail(`No folder found at: ${vaultPath}\nMake sure the path is correct and the folder exists.`);
|
|
736
736
|
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
if (!
|
|
742
|
-
rl
|
|
743
|
-
|
|
737
|
+
// Vault folder doesn't exist yet — that's expected for a new install.
|
|
738
|
+
// In --yes mode (setup scripts), proceed silently; the "[3/N] Creating
|
|
739
|
+
// vault at ..." step below prints its own status. In interactive mode,
|
|
740
|
+
// confirm with the user before creating.
|
|
741
|
+
if (!args.yes) {
|
|
742
|
+
const createIt = await confirm(rl, `Create new vault at ${cyan(vaultPath)}?`, { default: true });
|
|
743
|
+
if (!createIt) {
|
|
744
|
+
rl.close();
|
|
745
|
+
fail("Create the folder in Finder / File Explorer first, then re-run this installer.");
|
|
746
|
+
}
|
|
744
747
|
}
|
|
745
748
|
}
|
|
746
749
|
|