Commit cfa0fba

Anton Medvedev <anton@medv.io>
2022-10-04 22:37:18
Update end of line to lf
1 parent 3bc2ce3
Changed files (2)
src/core.ts
@@ -66,15 +66,20 @@ export const defaults: Options = {
   env: process.env,
   shell: true,
   prefix: '',
-  quote,
+  quote: () => {
+    throw new Error('No quote function is defined: https://ï.at/no-quote-func')
+  },
   spawn,
   log,
 }
 
 try {
-  if (process.platform !== 'win32') {
+  if (process.platform == 'win32') {
+    defaults.shell = true
+  } else {
     defaults.shell = which.sync('bash')
     defaults.prefix = 'set -euo pipefail;'
+    defaults.quote = quote
   }
 } catch (err) {
   // ¯\_(ツ)_/¯
package.json
@@ -82,7 +82,8 @@
   ],
   "prettier": {
     "semi": false,
-    "singleQuote": true
+    "singleQuote": true,
+    "endOfLine": "lf"
   },
   "repository": "google/zx",
   "author": "Anton Medvedev <anton@medv.io>",