diff --git a/test/sharness/t0010-basic-commands.sh b/test/sharness/t0010-basic-commands.sh index 8fff34c45..2dc699334 100755 --- a/test/sharness/t0010-basic-commands.sh +++ b/test/sharness/t0010-basic-commands.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0015-basic-sh-functions.sh b/test/sharness/t0015-basic-sh-functions.sh index 2d4d40b3f..81c67d9d2 100755 --- a/test/sharness/t0015-basic-sh-functions.sh +++ b/test/sharness/t0015-basic-sh-functions.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0018-indent.sh b/test/sharness/t0018-indent.sh index ae417c6f6..5fa398fd2 100755 --- a/test/sharness/t0018-indent.sh +++ b/test/sharness/t0018-indent.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test sharness test indent" diff --git a/test/sharness/t0020-init.sh b/test/sharness/t0020-init.sh index ffaa71152..9584c6e3a 100755 --- a/test/sharness/t0020-init.sh +++ b/test/sharness/t0020-init.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. @@ -46,7 +46,7 @@ test_expect_success "ipfs cat fails" ' test_expect_success "ipfs cat no repo message looks good" ' echo "Error: no IPFS repo found in $IPFS_PATH." > cat_fail_exp && - echo "please run: 'ipfs init'" >> cat_fail_exp && + echo "please run: '"'"'ipfs init'"'"'" >> cat_fail_exp && test_path_cmp cat_fail_exp cat_fail_out ' diff --git a/test/sharness/t0021-config.sh b/test/sharness/t0021-config.sh index 33b8583ad..3afe1cb43 100755 --- a/test/sharness/t0021-config.sh +++ b/test/sharness/t0021-config.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test config command" diff --git a/test/sharness/t0022-init-default.sh b/test/sharness/t0022-init-default.sh index 2f23581ea..b51a44184 100755 --- a/test/sharness/t0022-init-default.sh +++ b/test/sharness/t0022-init-default.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0023-shutdown.sh b/test/sharness/t0023-shutdown.sh index 5da668306..960e89db9 100755 --- a/test/sharness/t0023-shutdown.sh +++ b/test/sharness/t0023-shutdown.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0024-datastore-config.sh b/test/sharness/t0024-datastore-config.sh index 28c1b1e9d..3be75b302 100755 --- a/test/sharness/t0024-datastore-config.sh +++ b/test/sharness/t0024-datastore-config.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test datastore config" diff --git a/test/sharness/t0025-datastores.sh b/test/sharness/t0025-datastores.sh index 904117fe1..21100e5ae 100755 --- a/test/sharness/t0025-datastores.sh +++ b/test/sharness/t0025-datastores.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test non-standard datastores" diff --git a/test/sharness/t0030-mount.sh b/test/sharness/t0030-mount.sh index 1f456d619..5276f9e77 100755 --- a/test/sharness/t0030-mount.sh +++ b/test/sharness/t0030-mount.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0031-mount-publish.sh b/test/sharness/t0031-mount-publish.sh index 1427dd642..d7a3162a5 100755 --- a/test/sharness/t0031-mount-publish.sh +++ b/test/sharness/t0031-mount-publish.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test mount command in conjunction with publishing" diff --git a/test/sharness/t0040-add-and-cat.sh b/test/sharness/t0040-add-and-cat.sh index 80c20eff4..b9c633b29 100755 --- a/test/sharness/t0040-add-and-cat.sh +++ b/test/sharness/t0040-add-and-cat.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0041-ping.sh b/test/sharness/t0041-ping.sh index 44949f75e..1207dde5b 100755 --- a/test/sharness/t0041-ping.sh +++ b/test/sharness/t0041-ping.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test ping command" diff --git a/test/sharness/t0042-add-skip.sh b/test/sharness/t0042-add-skip.sh index c6340ceef..1bdea6607 100755 --- a/test/sharness/t0042-add-skip.sh +++ b/test/sharness/t0042-add-skip.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0043-add-w.sh b/test/sharness/t0043-add-w.sh index 37f72524e..6624e0af7 100755 --- a/test/sharness/t0043-add-w.sh +++ b/test/sharness/t0043-add-w.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0044-add-symlink.sh b/test/sharness/t0044-add-symlink.sh index 533cbeddb..40650eb7f 100755 --- a/test/sharness/t0044-add-symlink.sh +++ b/test/sharness/t0044-add-symlink.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0045-ls.sh b/test/sharness/t0045-ls.sh index 9b8fb57f8..2cb46a7dd 100755 --- a/test/sharness/t0045-ls.sh +++ b/test/sharness/t0045-ls.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0050-block.sh b/test/sharness/t0050-block.sh index 054b54910..729942d3f 100755 --- a/test/sharness/t0050-block.sh +++ b/test/sharness/t0050-block.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0051-object.sh b/test/sharness/t0051-object.sh index 9678fc2d1..9661407e5 100755 --- a/test/sharness/t0051-object.sh +++ b/test/sharness/t0051-object.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Henry Bubert # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0052-object-diff.sh b/test/sharness/t0052-object-diff.sh index 2fae33135..949088c27 100755 --- a/test/sharness/t0052-object-diff.sh +++ b/test/sharness/t0052-object-diff.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0053-dag.sh b/test/sharness/t0053-dag.sh index c0cc783a8..b723383c2 100755 --- a/test/sharness/t0053-dag.sh +++ b/test/sharness/t0053-dag.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0060-daemon.sh b/test/sharness/t0060-daemon.sh index e5cbb6e00..2ec1fc38e 100755 --- a/test/sharness/t0060-daemon.sh +++ b/test/sharness/t0060-daemon.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Juan Batiz-Benet # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0061-daemon-opts.sh b/test/sharness/t0061-daemon-opts.sh index 384f1f37e..78f711e26 100755 --- a/test/sharness/t0061-daemon-opts.sh +++ b/test/sharness/t0061-daemon-opts.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Juan Batiz-Benet # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0062-daemon-api.sh b/test/sharness/t0062-daemon-api.sh index 6f476f87c..700526915 100755 --- a/test/sharness/t0062-daemon-api.sh +++ b/test/sharness/t0062-daemon-api.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # MIT Licensed; see the LICENSE file in this repository. # diff --git a/test/sharness/t0063-daemon-init.sh b/test/sharness/t0063-daemon-init.sh index b9d23d658..8826ad246 100755 --- a/test/sharness/t0063-daemon-init.sh +++ b/test/sharness/t0063-daemon-init.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Juan Batiz-Benet # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0063-external.sh b/test/sharness/t0063-external.sh index d17fd2f7e..7d51b84da 100755 --- a/test/sharness/t0063-external.sh +++ b/test/sharness/t0063-external.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0065-active-requests.sh b/test/sharness/t0065-active-requests.sh index a35e9d125..e73e11989 100755 --- a/test/sharness/t0065-active-requests.sh +++ b/test/sharness/t0065-active-requests.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0066-migration.sh b/test/sharness/t0066-migration.sh index c23428682..5e1301bef 100755 --- a/test/sharness/t0066-migration.sh +++ b/test/sharness/t0066-migration.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0070-user-config.sh b/test/sharness/t0070-user-config.sh index f238397e7..63c26ea3a 100755 --- a/test/sharness/t0070-user-config.sh +++ b/test/sharness/t0070-user-config.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Brian Holder-Chow Lin On # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0080-repo.sh b/test/sharness/t0080-repo.sh index a52d58ab5..af3454641 100755 --- a/test/sharness/t0080-repo.sh +++ b/test/sharness/t0080-repo.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0081-repo-pinning.sh b/test/sharness/t0081-repo-pinning.sh index 92294a96f..54e64253c 100755 --- a/test/sharness/t0081-repo-pinning.sh +++ b/test/sharness/t0081-repo-pinning.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0082-repo-gc-auto.sh b/test/sharness/t0082-repo-gc-auto.sh index 00c4b9e3c..50a4e6fae 100755 --- a/test/sharness/t0082-repo-gc-auto.sh +++ b/test/sharness/t0082-repo-gc-auto.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # MIT Licensed; see the LICENSE file in this repository. # diff --git a/test/sharness/t0083-repo-fsck.sh b/test/sharness/t0083-repo-fsck.sh index 8bfea7afd..fe567840c 100755 --- a/test/sharness/t0083-repo-fsck.sh +++ b/test/sharness/t0083-repo-fsck.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Mike Pfister # MIT Licensed; see the LICENSE file in this repository. @@ -23,7 +23,7 @@ repo.lock" ' mkdir -p $IPFS_PATH/datastore && touch $IPFS_PATH/datastore/LOCK && touch $IPFS_PATH/repo.lock && - printf "/ip4/127.0.0.1/tcp/5001" > $IPFS_PATH/api && + printf "/ip4/127.0.0.1/tcp/5001" > "$IPFS_PATH/api" && ipfs repo fsck > fsck_out_actual1 ' test_expect_success "'ipfs repo fsck' output looks good with no daemon" ' @@ -42,9 +42,9 @@ test_expect_success "'ipfs repo fsck' confirm file deletion" ' # non-zero repo.lock issue test_expect_success "'ipfs repo fsck' succeeds with no daemon running non-zero repo.lock" ' - mkdir -p $IPFS_PATH && - printf ":D" > $IPFS_PATH/repo.lock && - touch $IPFS_PATH/datastore/LOCK && + mkdir -p "$IPFS_PATH" && + printf ":D" > "$IPFS_PATH/repo.lock" && + touch "$IPFS_PATH/datastore/LOCK" && ipfs repo fsck > fsck_out_actual1b ' test_expect_success "'ipfs repo fsck' output looks good with no daemon" ' @@ -64,7 +64,7 @@ test_expect_success "'ipfs repo fsck' confirm file deletion" ' # Try with locks api and datastore/LOCK test_expect_success "'ipfs repo fsck' succeeds partial lock" ' - printf "/ip4/127.0.0.1/tcp/5001" > $IPFS_PATH/api && + printf "/ip4/127.0.0.1/tcp/5001" > "$IPFS_PATH/api" && touch $IPFS_PATH/datastore/LOCK && ipfs repo fsck > fsck_out_actual2 ' @@ -82,7 +82,7 @@ test_expect_success "'ipfs repo fsck' confirm file deletion" ' # Try with locks api and repo.lock test_expect_success "'ipfs repo fsck' succeeds partial lock" ' - printf "/ip4/127.0.0.1/tcp/5001" > $IPFS_PATH/api && + printf "/ip4/127.0.0.1/tcp/5001" > "$IPFS_PATH/api" && touch $IPFS_PATH/repo.lock && ipfs repo fsck > fsck_out_actual3 ' @@ -154,7 +154,7 @@ test_expect_success "'ipfs repo fsck' confirm file deletion" ' # Try with single lock api test_expect_success "'ipfs repo fsck' succeeds partial lock" ' - printf "/ip4/127.0.0.1/tcp/5001" > $IPFS_PATH/api && + printf "/ip4/127.0.0.1/tcp/5001" > "$IPFS_PATH/api" && ipfs repo fsck > fsck_out_actual7 ' diff --git a/test/sharness/t0084-repo-read-rehash.sh b/test/sharness/t0084-repo-read-rehash.sh index cb887f9f5..7c1807932 100755 --- a/test/sharness/t0084-repo-read-rehash.sh +++ b/test/sharness/t0084-repo-read-rehash.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) Jakub Sztandera # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0085-pins.sh b/test/sharness/t0085-pins.sh index 5f2db3548..c0c1bd4d4 100755 --- a/test/sharness/t0085-pins.sh +++ b/test/sharness/t0085-pins.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0086-repo-verify.sh b/test/sharness/t0086-repo-verify.sh index dbfe2be78..dd2222ebe 100755 --- a/test/sharness/t0086-repo-verify.sh +++ b/test/sharness/t0086-repo-verify.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0087-repo-robust-gc.sh b/test/sharness/t0087-repo-robust-gc.sh index de5d0b7fb..896fc6929 100755 --- a/test/sharness/t0087-repo-robust-gc.sh +++ b/test/sharness/t0087-repo-robust-gc.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0088-repo-stat-symlink.sh b/test/sharness/t0088-repo-stat-symlink.sh index e38f7c7c2..6e6aedbd4 100755 --- a/test/sharness/t0088-repo-stat-symlink.sh +++ b/test/sharness/t0088-repo-stat-symlink.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 John Reed # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0090-get.sh b/test/sharness/t0090-get.sh index 98e8d92b3..ae3567279 100755 --- a/test/sharness/t0090-get.sh +++ b/test/sharness/t0090-get.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Matt Bell # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0100-name.sh b/test/sharness/t0100-name.sh index 10e8b7ca4..7dbaa7f79 100755 --- a/test/sharness/t0100-name.sh +++ b/test/sharness/t0100-name.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0101-iptb-name.sh b/test/sharness/t0101-iptb-name.sh index 5547bffb5..1fafe031e 100755 --- a/test/sharness/t0101-iptb-name.sh +++ b/test/sharness/t0101-iptb-name.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0110-gateway.sh b/test/sharness/t0110-gateway.sh index c5a4aa39c..92fa85e09 100755 --- a/test/sharness/t0110-gateway.sh +++ b/test/sharness/t0110-gateway.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Matt Bell # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0111-gateway-writeable.sh b/test/sharness/t0111-gateway-writeable.sh index 655f60a17..71775d5d1 100755 --- a/test/sharness/t0111-gateway-writeable.sh +++ b/test/sharness/t0111-gateway-writeable.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0112-gateway-cors.sh b/test/sharness/t0112-gateway-cors.sh index a173ed8b5..2cd3fe89c 100755 --- a/test/sharness/t0112-gateway-cors.sh +++ b/test/sharness/t0112-gateway-cors.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Marcin Rataj # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0120-bootstrap.sh b/test/sharness/t0120-bootstrap.sh index 0ed975eaf..589fea8c2 100755 --- a/test/sharness/t0120-bootstrap.sh +++ b/test/sharness/t0120-bootstrap.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0121-bootstrap-iptb.sh b/test/sharness/t0121-bootstrap-iptb.sh index 33234703b..2bf15a7f9 100755 --- a/test/sharness/t0121-bootstrap-iptb.sh +++ b/test/sharness/t0121-bootstrap-iptb.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0125-twonode.sh b/test/sharness/t0125-twonode.sh index 1ba9b3ba4..342cf1c4f 100755 --- a/test/sharness/t0125-twonode.sh +++ b/test/sharness/t0125-twonode.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0130-multinode.sh b/test/sharness/t0130-multinode.sh index 7138393f5..88302b8cc 100755 --- a/test/sharness/t0130-multinode.sh +++ b/test/sharness/t0130-multinode.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0131-multinode-client-routing.sh b/test/sharness/t0131-multinode-client-routing.sh index 6b2017d06..857cd06ac 100755 --- a/test/sharness/t0131-multinode-client-routing.sh +++ b/test/sharness/t0131-multinode-client-routing.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0140-swarm.sh b/test/sharness/t0140-swarm.sh index d4d5a96a5..121240621 100755 --- a/test/sharness/t0140-swarm.sh +++ b/test/sharness/t0140-swarm.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0141-addfilter.sh b/test/sharness/t0141-addfilter.sh index 490fb3a0d..5874f3112 100755 --- a/test/sharness/t0141-addfilter.sh +++ b/test/sharness/t0141-addfilter.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0150-clisuggest.sh b/test/sharness/t0150-clisuggest.sh index f7ab64acf..a504b38dd 100755 --- a/test/sharness/t0150-clisuggest.sh +++ b/test/sharness/t0150-clisuggest.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test ipfs cli cmd suggest" diff --git a/test/sharness/t0151-sysdiag.sh b/test/sharness/t0151-sysdiag.sh index 956557037..5c95dda26 100755 --- a/test/sharness/t0151-sysdiag.sh +++ b/test/sharness/t0151-sysdiag.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0160-resolve.sh b/test/sharness/t0160-resolve.sh index 65aac42dd..d64c0eac5 100755 --- a/test/sharness/t0160-resolve.sh +++ b/test/sharness/t0160-resolve.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test resolve command" diff --git a/test/sharness/t0165-keystore.sh b/test/sharness/t0165-keystore.sh index 966edb118..39c3b5dd9 100755 --- a/test/sharness/t0165-keystore.sh +++ b/test/sharness/t0165-keystore.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0170-dht.sh b/test/sharness/t0170-dht.sh index 44a28f556..24aad3c56 100755 --- a/test/sharness/t0170-dht.sh +++ b/test/sharness/t0170-dht.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test dht command" diff --git a/test/sharness/t0175-reprovider.sh b/test/sharness/t0175-reprovider.sh index 88051b7d2..7eea9e9d6 100755 --- a/test/sharness/t0175-reprovider.sh +++ b/test/sharness/t0175-reprovider.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test reprovider" diff --git a/test/sharness/t0180-p2p.sh b/test/sharness/t0180-p2p.sh index 44917c3b9..a11ab35f1 100755 --- a/test/sharness/t0180-p2p.sh +++ b/test/sharness/t0180-p2p.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test experimental p2p commands" diff --git a/test/sharness/t0180-pubsub.sh b/test/sharness/t0180-pubsub.sh index 2d9638b0f..16b5b0085 100755 --- a/test/sharness/t0180-pubsub.sh +++ b/test/sharness/t0180-pubsub.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test dht command" diff --git a/test/sharness/t0181-private-network.sh b/test/sharness/t0181-private-network.sh index 3e0e65148..43a3826fb 100755 --- a/test/sharness/t0181-private-network.sh +++ b/test/sharness/t0181-private-network.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0182-circuit-relay.sh b/test/sharness/t0182-circuit-relay.sh index a9c5dff1f..a6e888ee4 100755 --- a/test/sharness/t0182-circuit-relay.sh +++ b/test/sharness/t0182-circuit-relay.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test circuit relay" diff --git a/test/sharness/t0183-namesys-pubsub.sh b/test/sharness/t0183-namesys-pubsub.sh index 91bddea4d..eb3c27921 100755 --- a/test/sharness/t0183-namesys-pubsub.sh +++ b/test/sharness/t0183-namesys-pubsub.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Test IPNS pubsub" diff --git a/test/sharness/t0200-unixfs-ls.sh b/test/sharness/t0200-unixfs-ls.sh index 5b617ce89..7499d92ef 100755 --- a/test/sharness/t0200-unixfs-ls.sh +++ b/test/sharness/t0200-unixfs-ls.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0210-tar.sh b/test/sharness/t0210-tar.sh index 40e10329b..d3ca3745b 100755 --- a/test/sharness/t0210-tar.sh +++ b/test/sharness/t0210-tar.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0220-bitswap.sh b/test/sharness/t0220-bitswap.sh index ae3435fd6..fb1e3dbc7 100755 --- a/test/sharness/t0220-bitswap.sh +++ b/test/sharness/t0220-bitswap.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0230-channel-streaming-http-content-type.sh b/test/sharness/t0230-channel-streaming-http-content-type.sh index f956dc138..deffffa2c 100755 --- a/test/sharness/t0230-channel-streaming-http-content-type.sh +++ b/test/sharness/t0230-channel-streaming-http-content-type.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Cayman Nava # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0231-channel-streaming.sh b/test/sharness/t0231-channel-streaming.sh index c759a7b27..36e855fb7 100755 --- a/test/sharness/t0231-channel-streaming.sh +++ b/test/sharness/t0231-channel-streaming.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0235-cli-request.sh b/test/sharness/t0235-cli-request.sh index 98e052d53..42931a2c5 100755 --- a/test/sharness/t0235-cli-request.sh +++ b/test/sharness/t0235-cli-request.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0240-republisher.sh b/test/sharness/t0240-republisher.sh index 8e1bd7593..40b0b726f 100755 --- a/test/sharness/t0240-republisher.sh +++ b/test/sharness/t0240-republisher.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0250-files-api.sh b/test/sharness/t0250-files-api.sh index e44bf1fc0..adf72efdc 100755 --- a/test/sharness/t0250-files-api.sh +++ b/test/sharness/t0250-files-api.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0251-files-flushing.sh b/test/sharness/t0251-files-flushing.sh index 193845e7a..44e3f73df 100755 --- a/test/sharness/t0251-files-flushing.sh +++ b/test/sharness/t0251-files-flushing.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0252-files-gc.sh b/test/sharness/t0252-files-gc.sh index 10928c424..f5db0d33b 100755 --- a/test/sharness/t0252-files-gc.sh +++ b/test/sharness/t0252-files-gc.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Kevin Atkinson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0260-sharding.sh b/test/sharness/t0260-sharding.sh index d7c275914..63f797aba 100755 --- a/test/sharness/t0260-sharding.sh +++ b/test/sharness/t0260-sharding.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2014 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0270-filestore.sh b/test/sharness/t0270-filestore.sh index 04615db04..7bcea9b59 100755 --- a/test/sharness/t0270-filestore.sh +++ b/test/sharness/t0270-filestore.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0271-filestore-utils.sh b/test/sharness/t0271-filestore-utils.sh index c93f51e9a..3e0302b40 100755 --- a/test/sharness/t0271-filestore-utils.sh +++ b/test/sharness/t0271-filestore-utils.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0275-cid-security.sh b/test/sharness/t0275-cid-security.sh index 1b08b0704..318e3e439 100755 --- a/test/sharness/t0275-cid-security.sh +++ b/test/sharness/t0275-cid-security.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jakub Sztandera # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0280-plugin-git.sh b/test/sharness/t0280-plugin-git.sh index a93dfdeba..8f912646d 100755 --- a/test/sharness/t0280-plugin-git.sh +++ b/test/sharness/t0280-plugin-git.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Jakub Sztandera # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0300-docker-image.sh b/test/sharness/t0300-docker-image.sh index 9cf07f1fe..06acba5b7 100755 --- a/test/sharness/t0300-docker-image.sh +++ b/test/sharness/t0300-docker-image.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2015 Christian Couder # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0301-docker-migrate.sh b/test/sharness/t0301-docker-migrate.sh index f4bcdd5be..0718e1216 100755 --- a/test/sharness/t0301-docker-migrate.sh +++ b/test/sharness/t0301-docker-migrate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2017 Whyrusleeping # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0400-api-security.sh b/test/sharness/t0400-api-security.sh index ccf925274..137f99a95 100755 --- a/test/sharness/t0400-api-security.sh +++ b/test/sharness/t0400-api-security.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Lars Gierth # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0410-api-add.sh b/test/sharness/t0410-api-add.sh index d0d6b75c1..6481e9ef6 100755 --- a/test/sharness/t0410-api-add.sh +++ b/test/sharness/t0410-api-add.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Tom O'Donnell # MIT Licensed; see the LICENSE file in this repository. diff --git a/test/sharness/t0500-issues-and-regressions-offline.sh b/test/sharness/t0500-issues-and-regressions-offline.sh index 78eb18125..5a361aae9 100755 --- a/test/sharness/t0500-issues-and-regressions-offline.sh +++ b/test/sharness/t0500-issues-and-regressions-offline.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Tests for various fixed issues and regressions." diff --git a/test/sharness/t0600-issues-and-regressions-online.sh b/test/sharness/t0600-issues-and-regressions-online.sh index 132f59721..6227968de 100755 --- a/test/sharness/t0600-issues-and-regressions-online.sh +++ b/test/sharness/t0600-issues-and-regressions-online.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash test_description="Tests for various fixed issues and regressions." diff --git a/test/sharness/x0601-pin-fail-test.sh b/test/sharness/x0601-pin-fail-test.sh index de89735cb..ffab1062d 100755 --- a/test/sharness/x0601-pin-fail-test.sh +++ b/test/sharness/x0601-pin-fail-test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # Copyright (c) 2016 Jeromy Johnson # MIT Licensed; see the LICENSE file in this repository.