From 03296cfbe99133f824136694a576e2815cfa773d Mon Sep 17 00:00:00 2001 From: Anton Vasin <944260+antonvasin@users.noreply.github.com> Date: Tue, 4 Feb 2025 20:28:50 +0000 Subject: [PATCH] Fix hashbang in JS examples --- demo/js/crdt_gset.js | 2 +- demo/js/crdt_pn_counter.js | 2 +- demo/js/echo.js | 2 +- demo/js/echo_minimal.js | 2 +- demo/js/gossip.js | 2 +- demo/js/multi_key_txn.js | 2 +- demo/js/node.js | 2 -- demo/js/single_key_txn.js | 2 +- 8 files changed, 7 insertions(+), 9 deletions(-) diff --git a/demo/js/crdt_gset.js b/demo/js/crdt_gset.js index 152cf41..1212385 100755 --- a/demo/js/crdt_gset.js +++ b/demo/js/crdt_gset.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node // A CRDT grow-only set var node = require('./node'); diff --git a/demo/js/crdt_pn_counter.js b/demo/js/crdt_pn_counter.js index 0e500ee..2b98364 100755 --- a/demo/js/crdt_pn_counter.js +++ b/demo/js/crdt_pn_counter.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node // A CRDT PN-counter var node = require('./node'); diff --git a/demo/js/echo.js b/demo/js/echo.js index 9bf389a..db68b0d 100755 --- a/demo/js/echo.js +++ b/demo/js/echo.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node // A basic echo server var node = require('./node'); diff --git a/demo/js/echo_minimal.js b/demo/js/echo_minimal.js index 98bbe13..ec86c78 100755 --- a/demo/js/echo_minimal.js +++ b/demo/js/echo_minimal.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node var readline = require('readline'); var rl = readline.createInterface({ diff --git a/demo/js/gossip.js b/demo/js/gossip.js index 575cb8f..b83f547 100755 --- a/demo/js/gossip.js +++ b/demo/js/gossip.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node // A gossip system which supports the Maelstrom broadcast workload var node = require('./node'); diff --git a/demo/js/multi_key_txn.js b/demo/js/multi_key_txn.js index 6221ee6..901b886 100755 --- a/demo/js/multi_key_txn.js +++ b/demo/js/multi_key_txn.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node // A simple list-append transaction service which stores data in multiple // lww-kv thunks referenced by a single root map in lin-kv. diff --git a/demo/js/node.js b/demo/js/node.js index 75905a7..2933683 100644 --- a/demo/js/node.js +++ b/demo/js/node.js @@ -1,5 +1,3 @@ -#!/usr/bin/node - // The node object provides support for reading messages from STDIN, writing // them to STDOUT, keeping track of basic state, writing pluggable handlers for // client RPC requests, and sending our own RPCs. diff --git a/demo/js/single_key_txn.js b/demo/js/single_key_txn.js index ff52ecc..c8b043f 100755 --- a/demo/js/single_key_txn.js +++ b/demo/js/single_key_txn.js @@ -1,4 +1,4 @@ -#!/usr/bin/node +#!/usr/bin/env node // A simple list-append transaction service which stores data in a single key // in lin-kv.