From 5d36ca05a5efd305e13d19d6f4762280ec2e7ed8 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Sun, 4 Aug 2019 14:47:57 +0200 Subject: [PATCH] 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). --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 77969a5..d2d6918 100755 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ -const debug = require('debug')('ipfs-pinner'); +#!/usr/bin/env node + const Kredits = require('kredits-contracts'); const IpfsPinner = require('./lib/ipfs-pinner'); -- 2.25.1