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
ash 2022-08-17 23:03:21 +01:00
parent fa8b20f3f1
commit 5a6b37f3cc
10 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/nodejs
#!/usr/bin/env nodejs
/* Simple Command-line app loader for Node.js
===============================================

View File

@ -1,4 +1,4 @@
#!/usr/bin/nodejs
#!/usr/bin/env nodejs
/* Quick hack to add proper 'supports' field to apps.json
*/

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# ================================================================
# apps.json used to contain the metadata for every app. Now the
# metadata is stored in each apps's directory - app/yourapp/metadata.js

View File

@ -1,4 +1,4 @@
#!/usr/bin/nodejs
#!/usr/bin/env nodejs
/*
Mashes together a bunch of different apps to make
a single firmware JS file which can be uploaded.

View File

@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
/*
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

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd `dirname $0`/..
nodejs bin/sanitycheck.js || exit 1

View File

@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
/* Checks for any obvious problems in apps.json
*/

View File

@ -1,4 +1,4 @@
#!/usr/bin/node
#!/usr/bin/env node
/*
var EMULATOR = "banglejs2";

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd `dirname $0`/..
ls tests/*.js | xargs -I{} bin/runtest.sh {}

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Requires Linux x64 (for ./espruino)
# Also imagemagick for display