Fix executable not working

Need to tell the system it's dealing with a node script. This fixes both
the installed `kredits-ipfs-pinner` command as well as npx (which is
also running that command).
This commit is contained in:
2019-08-04 14:47:57 +02:00
parent 0c93766111
commit 5d36ca05a5

View File

@@ -1,4 +1,5 @@
const debug = require('debug')('ipfs-pinner'); #!/usr/bin/env node
const Kredits = require('kredits-contracts'); const Kredits = require('kredits-contracts');
const IpfsPinner = require('./lib/ipfs-pinner'); const IpfsPinner = require('./lib/ipfs-pinner');