mirror of https://github.com/espruino/BangleApps
Use /usr/bin/env as shebang everywhere
It's not guaranteed that bash will be available at /bin/bash; it's even less likely that node will always be installed at /usr/bin/node{,js}. Always indirecting through /usr/bin/env means that there is only one such path that needs to be available.pull/2090/head
parent
fa8b20f3f1
commit
5a6b37f3cc
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/nodejs
|
#!/usr/bin/env nodejs
|
||||||
/* Simple Command-line app loader for Node.js
|
/* Simple Command-line app loader for Node.js
|
||||||
===============================================
|
===============================================
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/nodejs
|
#!/usr/bin/env nodejs
|
||||||
/* Quick hack to add proper 'supports' field to apps.json
|
/* Quick hack to add proper 'supports' field to apps.json
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# ================================================================
|
# ================================================================
|
||||||
# apps.json used to contain the metadata for every app. Now the
|
# apps.json used to contain the metadata for every app. Now the
|
||||||
# metadata is stored in each apps's directory - app/yourapp/metadata.js
|
# metadata is stored in each apps's directory - app/yourapp/metadata.js
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/nodejs
|
#!/usr/bin/env nodejs
|
||||||
/*
|
/*
|
||||||
Mashes together a bunch of different apps to make
|
Mashes together a bunch of different apps to make
|
||||||
a single firmware JS file which can be uploaded.
|
a single firmware JS file which can be uploaded.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/node
|
#!/usr/bin/env node
|
||||||
/*
|
/*
|
||||||
Mashes together a bunch of different apps into a big binary blob.
|
Mashes together a bunch of different apps into a big binary blob.
|
||||||
We then store this *inside* the Bangle.js firmware and can use it
|
We then store this *inside* the Bangle.js firmware and can use it
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd `dirname $0`/..
|
cd `dirname $0`/..
|
||||||
nodejs bin/sanitycheck.js || exit 1
|
nodejs bin/sanitycheck.js || exit 1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/node
|
#!/usr/bin/env node
|
||||||
/* Checks for any obvious problems in apps.json
|
/* Checks for any obvious problems in apps.json
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/*
|
/*
|
||||||
var EMULATOR = "banglejs2";
|
var EMULATOR = "banglejs2";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd `dirname $0`/..
|
cd `dirname $0`/..
|
||||||
ls tests/*.js | xargs -I{} bin/runtest.sh {}
|
ls tests/*.js | xargs -I{} bin/runtest.sh {}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
# Requires Linux x64 (for ./espruino)
|
# Requires Linux x64 (for ./espruino)
|
||||||
# Also imagemagick for display
|
# Also imagemagick for display
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue