aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-07 17:15:28 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-07 17:15:28 +0200
commit4114fd1586bce1757b06efbc5a941df71a0a049b (patch)
treeffd5fd3953f70a04c7ffa2811e3c2f613091c72e /api
parent72d7fdf56ebf5f02614f1172115a687ccc7f39fa (diff)
downloadarching-kaos-tools-4114fd1586bce1757b06efbc5a941df71a0a049b.tar.gz
arching-kaos-tools-4114fd1586bce1757b06efbc5a941df71a0a049b.tar.bz2
arching-kaos-tools-4114fd1586bce1757b06efbc5a941df71a0a049b.zip
Portable shebangs
Diffstat (limited to 'api')
-rwxr-xr-xapi/make_cache.sh2
-rwxr-xr-xapi/tests/announce_zblock.sh2
-rwxr-xr-xapi/tests/announce_zchain_link.sh2
-rwxr-xr-xapi/tests/default_route.sh2
-rwxr-xr-xapi/tests/gathered_zblocks.sh2
-rwxr-xr-xapi/tests/gathered_zchain_zlatest_pairs.sh2
-rwxr-xr-xapi/tests/latest_known_mined_block.sh2
-rwxr-xr-xapi/tests/node_local_chain.sh2
-rwxr-xr-xapi/tests/node_local_zlatest.sh2
-rwxr-xr-xapi/tests/show_mined_block.sh2
-rwxr-xr-xapi/tests/test_all_routes.sh2
11 files changed, 11 insertions, 11 deletions
diff --git a/api/make_cache.sh b/api/make_cache.sh
index c075f27..cce86bd 100755
--- a/api/make_cache.sh
+++ b/api/make_cache.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
ak schain --get-latest > $AK_CACHEDIR/ak-find-latest-mined-sblock.json
ak zchain --crawl > $AK_CACHEDIR/ak-get-chain-minified.json
ak zchain --get-latest > $AK_CACHEDIR/ak-get-zlatest.json
diff --git a/api/tests/announce_zblock.sh b/api/tests/announce_zblock.sh
index 15a48ef..43db7d3 100755
--- a/api/tests/announce_zblock.sh
+++ b/api/tests/announce_zblock.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
printf "TEST\t/v0/announce/zblock\n"
diff --git a/api/tests/announce_zchain_link.sh b/api/tests/announce_zchain_link.sh
index 1608a08..d938286 100755
--- a/api/tests/announce_zchain_link.sh
+++ b/api/tests/announce_zchain_link.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
printf "TEST\t/v0/announce/zchain\n"
diff --git a/api/tests/default_route.sh b/api/tests/default_route.sh
index c50d11d..3b1ba6c 100755
--- a/api/tests/default_route.sh
+++ b/api/tests/default_route.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
curl -s http://127.0.0.1:8610 2>/dev/null | jq > /dev/null
diff --git a/api/tests/gathered_zblocks.sh b/api/tests/gathered_zblocks.sh
index bde7313..273f968 100755
--- a/api/tests/gathered_zblocks.sh
+++ b/api/tests/gathered_zblocks.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
PROGRAM="$(basename $0)"
diff --git a/api/tests/gathered_zchain_zlatest_pairs.sh b/api/tests/gathered_zchain_zlatest_pairs.sh
index 60da911..e30f24c 100755
--- a/api/tests/gathered_zchain_zlatest_pairs.sh
+++ b/api/tests/gathered_zchain_zlatest_pairs.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
printf "TEST\t/seens\n"
diff --git a/api/tests/latest_known_mined_block.sh b/api/tests/latest_known_mined_block.sh
index 168767e..1ef55a1 100755
--- a/api/tests/latest_known_mined_block.sh
+++ b/api/tests/latest_known_mined_block.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
diff --git a/api/tests/node_local_chain.sh b/api/tests/node_local_chain.sh
index fb5672f..626456e 100755
--- a/api/tests/node_local_chain.sh
+++ b/api/tests/node_local_chain.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
printf "TEST /zchain\n"
diff --git a/api/tests/node_local_zlatest.sh b/api/tests/node_local_zlatest.sh
index 132107f..fe8e01b 100755
--- a/api/tests/node_local_zlatest.sh
+++ b/api/tests/node_local_zlatest.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
API_RES="$(curl -s http://127.0.0.1:8610/v0/zlatest 2>/dev/null | sha512sum - | awk '{ printf $1 }')"
diff --git a/api/tests/show_mined_block.sh b/api/tests/show_mined_block.sh
index 6477a32..a621af1 100755
--- a/api/tests/show_mined_block.sh
+++ b/api/tests/show_mined_block.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
printf "#TODO /sblock endpoint\n"
diff --git a/api/tests/test_all_routes.sh b/api/tests/test_all_routes.sh
index 9a56faa..b9fd125 100755
--- a/api/tests/test_all_routes.sh
+++ b/api/tests/test_all_routes.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
PROGRAM="$(basename $0)"
printf '[%s] Starting tests...\n' "$PROGRAM"
bash node_local_chain.sh