From 4114fd1586bce1757b06efbc5a941df71a0a049b Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 7 Dec 2024 17:15:28 +0200 Subject: Portable shebangs --- api/make_cache.sh | 2 +- api/tests/announce_zblock.sh | 2 +- api/tests/announce_zchain_link.sh | 2 +- api/tests/default_route.sh | 2 +- api/tests/gathered_zblocks.sh | 2 +- api/tests/gathered_zchain_zlatest_pairs.sh | 2 +- api/tests/latest_known_mined_block.sh | 2 +- api/tests/node_local_chain.sh | 2 +- api/tests/node_local_zlatest.sh | 2 +- api/tests/show_mined_block.sh | 2 +- api/tests/test_all_routes.sh | 2 +- bin/ak | 2 +- bin/ak-cjdns | 2 +- bin/ak-clean | 2 +- bin/ak-coin | 2 +- bin/ak-config | 2 +- bin/ak-fs | 2 +- bin/ak-get-balances | 2 +- bin/ak-gpg | 2 +- bin/ak-ipfs-daemon | 2 +- bin/ak-ipfs-starter | 2 +- bin/ak-json2bash | 2 +- bin/ak-log | 2 +- bin/ak-mempool | 2 +- bin/ak-mine | 2 +- bin/ak-network | 2 +- bin/ak-node-info | 2 +- bin/ak-profile | 2 +- bin/ak-sblock | 2 +- bin/ak-schain | 2 +- bin/ak-settings | 2 +- bin/ak-startup | 2 +- bin/ak-template | 2 +- bin/ak-transactions | 2 +- bin/ak-update | 2 +- bin/ak-zblock | 2 +- bin/ak-zchain | 2 +- full_test_with_podman.sh | 2 +- gen-changelog.sh | 2 +- init.sh | 2 +- install.sh | 2 +- ipfs-check-install-setup-init-update | 2 +- lib/_ak_cjdns | 2 +- lib/_ak_coin | 2 +- lib/_ak_config | 2 +- lib/_ak_fm | 2 +- lib/_ak_gpg | 2 +- lib/_ak_html | 2 +- lib/_ak_ipfs | 2 +- lib/_ak_log | 2 +- lib/_ak_network | 2 +- lib/_ak_node | 2 +- lib/_ak_sblock | 2 +- lib/_ak_schain | 2 +- lib/_ak_script | 2 +- lib/_ak_settings | 2 +- lib/_ak_smfiles | 4 ++-- lib/_ak_zblock | 2 +- lib/_ak_zchain | 2 +- modules/articles/main.sh | 2 +- modules/categories/main.sh | 2 +- modules/comments/main.sh | 2 +- modules/files/main.sh | 2 +- modules/folders/main.sh | 2 +- modules/follow/lib.sh | 2 +- modules/follow/main.sh | 2 +- modules/mixtapes/main.sh | 2 +- modules/news/lib.sh | 2 +- modules/news/main.sh | 2 +- modules/reference/main.sh | 2 +- modules/repositories/main.sh | 2 +- modules/roadmap/main.sh | 2 +- modules/smfiles/lib.sh | 2 +- modules/smfiles/main.sh | 2 +- modules/todos/main.sh | 2 +- src/build.sh | 2 +- src/build_tree/ak_fs_build.sh | 2 +- src/build_tree/ak_log_build.sh | 2 +- src/new_lib.sh | 2 +- test_with_podman.sh | 2 +- uninstall.sh | 2 +- update.sh | 2 +- 82 files changed, 83 insertions(+), 83 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 diff --git a/bin/ak b/bin/ak index 6d7dbd9..2d01ea5 100755 --- a/bin/ak +++ b/bin/ak @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export AK_DEBUG="yes" ## ## Arching Kaos CLI tool is the main executable script to use for exploring, diff --git a/bin/ak-cjdns b/bin/ak-cjdns index 3abc254..9219f19 100755 --- a/bin/ak-cjdns +++ b/bin/ak-cjdns @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## cjdns helper ## diff --git a/bin/ak-clean b/bin/ak-clean index 8d28d74..f1d7f49 100755 --- a/bin/ak-clean +++ b/bin/ak-clean @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Cleans up temporary directories and files ## diff --git a/bin/ak-coin b/bin/ak-coin index 96f9f88..cd14602 100755 --- a/bin/ak-coin +++ b/bin/ak-coin @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Coin status ## diff --git a/bin/ak-config b/bin/ak-config index 4418ba3..5d7b630 100755 --- a/bin/ak-config +++ b/bin/ak-config @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Usage: ak-config [ -h | --help | --show | --publish | --get-published ] ## diff --git a/bin/ak-fs b/bin/ak-fs index c6c1bf8..f173b6b 100755 --- a/bin/ak-fs +++ b/bin/ak-fs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Tools to add, get and cat files to/from the Arching Kaos File System ## diff --git a/bin/ak-get-balances b/bin/ak-get-balances index 5fe56ea..9fa7385 100755 --- a/bin/ak-get-balances +++ b/bin/ak-get-balances @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Calculates the balances of the sblocks found from a chain ## Saves stuff too for later reference diff --git a/bin/ak-gpg b/bin/ak-gpg index 2c8bbdc..39dd6f6 100755 --- a/bin/ak-gpg +++ b/bin/ak-gpg @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## It is a minimal wrapper aroung lib/_ak_gpg. ## diff --git a/bin/ak-ipfs-daemon b/bin/ak-ipfs-daemon index 6ae4aa3..3265966 100755 --- a/bin/ak-ipfs-daemon +++ b/bin/ak-ipfs-daemon @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Starts IPFS daemon ## diff --git a/bin/ak-ipfs-starter b/bin/ak-ipfs-starter index 3a7df29..7ce85c2 100755 --- a/bin/ak-ipfs-starter +++ b/bin/ak-ipfs-starter @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PROGRAM="$(basename $0)" source $AK_LIBDIR/_ak_log diff --git a/bin/ak-json2bash b/bin/ak-json2bash index 70b0d3b..28a7e37 100755 --- a/bin/ak-json2bash +++ b/bin/ak-json2bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # # ak-json2bash # diff --git a/bin/ak-log b/bin/ak-log index 3e7f8b6..31f13e8 100755 --- a/bin/ak-log +++ b/bin/ak-log @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Used to overview, archive or append to the log file ## diff --git a/bin/ak-mempool b/bin/ak-mempool index 4e796fb..98c003a 100755 --- a/bin/ak-mempool +++ b/bin/ak-mempool @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Brief description ## diff --git a/bin/ak-mine b/bin/ak-mine index 7f7a826..dd3e970 100755 --- a/bin/ak-mine +++ b/bin/ak-mine @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## You can mine sblocks for schain ## diff --git a/bin/ak-network b/bin/ak-network index 5cafd86..b14f0d2 100755 --- a/bin/ak-network +++ b/bin/ak-network @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Network tools ## diff --git a/bin/ak-node-info b/bin/ak-node-info index b3933c1..21255c6 100755 --- a/bin/ak-node-info +++ b/bin/ak-node-info @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Brief description ## diff --git a/bin/ak-profile b/bin/ak-profile index a595080..c7d55c0 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Indexes, shows, imports, adds, sets and gets values from and to the ## zchain and files. diff --git a/bin/ak-sblock b/bin/ak-sblock index 3766b96..dd6d764 100755 --- a/bin/ak-sblock +++ b/bin/ak-sblock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Tools to show/read sblocks ## diff --git a/bin/ak-schain b/bin/ak-schain index 3164eeb..cf166a5 100755 --- a/bin/ak-schain +++ b/bin/ak-schain @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Various tools for schains ## diff --git a/bin/ak-settings b/bin/ak-settings index d2c87fb..ec29f95 100755 --- a/bin/ak-settings +++ b/bin/ak-settings @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Set or get settings for your instance ## diff --git a/bin/ak-startup b/bin/ak-startup index eeaf29c..479bba5 100755 --- a/bin/ak-startup +++ b/bin/ak-startup @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Arching Kaos system starter ## diff --git a/bin/ak-template b/bin/ak-template index 362b22e..85ecd0a 100755 --- a/bin/ak-template +++ b/bin/ak-template @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Brief description ## diff --git a/bin/ak-transactions b/bin/ak-transactions index b23920a..669b5b3 100755 --- a/bin/ak-transactions +++ b/bin/ak-transactions @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## ak-transactions ## diff --git a/bin/ak-update b/bin/ak-update index 95e7963..a69f0ab 100755 --- a/bin/ak-update +++ b/bin/ak-update @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -L "${AK_WORKDIR}/bin/ak" ] then diff --git a/bin/ak-zblock b/bin/ak-zblock index 3a16ec4..9a7caec 100755 --- a/bin/ak-zblock +++ b/bin/ak-zblock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Performs various operations on a zblock. Additionally, it can also pack one ## from given information, which can be added on top of your zchain. diff --git a/bin/ak-zchain b/bin/ak-zchain index eabd9a4..f6370b9 100755 --- a/bin/ak-zchain +++ b/bin/ak-zchain @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Tools for zchains ## diff --git a/full_test_with_podman.sh b/full_test_with_podman.sh index 517175e..b551838 100755 --- a/full_test_with_podman.sh +++ b/full_test_with_podman.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ ! -z $1 ] && [ -n "$1" ] then diff --git a/gen-changelog.sh b/gen-changelog.sh index 9945958..ee1bca5 100755 --- a/gen-changelog.sh +++ b/gen-changelog.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/usr/bin/env bash git -P log --summary | grep -e ' ' -e 'commit' -e 'Date:' | sed -e 's/commit /---\n/g' -e 's/Date: //g' > CHANGELOG diff --git a/init.sh b/init.sh index 51a32a0..433a5b5 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -x source lib/_ak_ipfs source lib/_ak_settings diff --git a/install.sh b/install.sh index c7c90ab..850fc26 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash clear printf "Arching Kaos Tools Installer\n" printf "============================\n" diff --git a/ipfs-check-install-setup-init-update b/ipfs-check-install-setup-init-update index 63d5680..0e2cb39 100755 --- a/ipfs-check-install-setup-init-update +++ b/ipfs-check-install-setup-init-update @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash PROGRAM="$(basename $0)" source lib/_ak_script source lib/_ak_log diff --git a/lib/_ak_cjdns b/lib/_ak_cjdns index 4328c65..f997690 100755 --- a/lib/_ak_cjdns +++ b/lib/_ak_cjdns @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_network diff --git a/lib/_ak_coin b/lib/_ak_coin index fda3bc0..e289841 100755 --- a/lib/_ak_coin +++ b/lib/_ak_coin @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # coin max is 10,000.0000000 # but we count in integer to avoid floating point arithmetic :P # diff --git a/lib/_ak_config b/lib/_ak_config index 45d0112..252a4e2 100755 --- a/lib/_ak_config +++ b/lib/_ak_config @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_node _ak_config_show(){ diff --git a/lib/_ak_fm b/lib/_ak_fm index deefb6d..c170f27 100755 --- a/lib/_ak_fm +++ b/lib/_ak_fm @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _ak_fm_remove_line_from_file(){ tempfile="$(_ak_make_temp_file)" diff --git a/lib/_ak_gpg b/lib/_ak_gpg index b381067..0d838f1 100755 --- a/lib/_ak_gpg +++ b/lib/_ak_gpg @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_config diff --git a/lib/_ak_html b/lib/_ak_html index 38723c8..c31172e 100755 --- a/lib/_ak_html +++ b/lib/_ak_html @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log _ak_generate_html_header(){ diff --git a/lib/_ak_ipfs b/lib/_ak_ipfs index c5e0b6a..1028ae8 100755 --- a/lib/_ak_ipfs +++ b/lib/_ak_ipfs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log AK_IPFS_REPO="$AK_WORKDIR/ipfsrepo" AK_IPFS_ARTIFACTS="$AK_WORKDIR/ipfs_artifacts" diff --git a/lib/_ak_log b/lib/_ak_log index 9e56606..7f832d8 100755 --- a/lib/_ak_log +++ b/lib/_ak_log @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash _ak_log_print_log_line(){ if [ -n "$1" ] diff --git a/lib/_ak_network b/lib/_ak_network index 30d72b7..a30001d 100755 --- a/lib/_ak_network +++ b/lib/_ak_network @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs diff --git a/lib/_ak_node b/lib/_ak_node index c1436d9..b4736d8 100755 --- a/lib/_ak_node +++ b/lib/_ak_node @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_ipfs # Resolves the IPNS key "ak-config" to its current IPFS value diff --git a/lib/_ak_sblock b/lib/_ak_sblock index 04038da..fbe6913 100755 --- a/lib/_ak_sblock +++ b/lib/_ak_sblock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log diff --git a/lib/_ak_schain b/lib/_ak_schain index 809a454..136d1fd 100755 --- a/lib/_ak_schain +++ b/lib/_ak_schain @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_sblock diff --git a/lib/_ak_script b/lib/_ak_script index 2338d1d..f2b4740 100755 --- a/lib/_ak_script +++ b/lib/_ak_script @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log # Wanna talk about it? diff --git a/lib/_ak_settings b/lib/_ak_settings index 1a4be03..5a38a1e 100755 --- a/lib/_ak_settings +++ b/lib/_ak_settings @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_script diff --git a/lib/_ak_smfiles b/lib/_ak_smfiles index 55ec381..f41d006 100755 --- a/lib/_ak_smfiles +++ b/lib/_ak_smfiles @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log # The directory where the chunked data will be living at @@ -87,7 +87,7 @@ _ak_sm_file_joiner(){ then MAPSFILE="$1" - echo '#!/bin/bash' > script + echo '#!/usr/bin/env bash' > script # We create a script to copy all the chunks and rename them to their serialized # name produced by split when we splitted the file diff --git a/lib/_ak_zblock b/lib/_ak_zblock index 1b278a0..3dff038 100755 --- a/lib/_ak_zblock +++ b/lib/_ak_zblock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #set -x source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_script diff --git a/lib/_ak_zchain b/lib/_ak_zchain index 73b10fb..b561077 100755 --- a/lib/_ak_zchain +++ b/lib/_ak_zchain @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_zblock diff --git a/modules/articles/main.sh b/modules/articles/main.sh index ebc9dd8..04033d0 100755 --- a/modules/articles/main.sh +++ b/modules/articles/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## -h, --help Prints this help message ## index Prints an indexed table of your articles files diff --git a/modules/categories/main.sh b/modules/categories/main.sh index f8beb8a..cd2d0dd 100755 --- a/modules/categories/main.sh +++ b/modules/categories/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## -h, --help Prints this help message" ## index Prints an indexed table of your news files" diff --git a/modules/comments/main.sh b/modules/comments/main.sh index 59fb46f..8fedaca 100755 --- a/modules/comments/main.sh +++ b/modules/comments/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## -h, --help Prints this help message" ## index Prints an indexed table of your comments files" diff --git a/modules/files/main.sh b/modules/files/main.sh index 809d76d..5dcb432 100755 --- a/modules/files/main.sh +++ b/modules/files/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## The following creates a files data message ## diff --git a/modules/folders/main.sh b/modules/folders/main.sh index 462c5e5..792531c 100755 --- a/modules/folders/main.sh +++ b/modules/folders/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## The following creates a folder data message ## ## diff --git a/modules/follow/lib.sh b/modules/follow/lib.sh index 17ac384..3186db5 100755 --- a/modules/follow/lib.sh +++ b/modules/follow/lib.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_ipfs diff --git a/modules/follow/main.sh b/modules/follow/main.sh index b5097a9..2da589d 100755 --- a/modules/follow/main.sh +++ b/modules/follow/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## You can maintain a list of friendly zchains or ids ## diff --git a/modules/mixtapes/main.sh b/modules/mixtapes/main.sh index 27616d0..2f6deeb 100755 --- a/modules/mixtapes/main.sh +++ b/modules/mixtapes/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## The following creates a mixtape data message ## diff --git a/modules/news/lib.sh b/modules/news/lib.sh index 35ff807..2001a2c 100755 --- a/modules/news/lib.sh +++ b/modules/news/lib.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs source $AK_LIBDIR/_ak_gpg diff --git a/modules/news/main.sh b/modules/news/main.sh index 94860ed..5b7f394 100755 --- a/modules/news/main.sh +++ b/modules/news/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## -h, --help Prints this help message ## -l, --local-index Prints an indexed table of your news files diff --git a/modules/reference/main.sh b/modules/reference/main.sh index b17b7ce..362de0a 100755 --- a/modules/reference/main.sh +++ b/modules/reference/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## #TODO ## All you need to know is that there are two options available: ## -h, --help Prints this help message diff --git a/modules/repositories/main.sh b/modules/repositories/main.sh index 55f8076..fa8263a 100755 --- a/modules/repositories/main.sh +++ b/modules/repositories/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_zblock REPODIR="$HOME/projects" BAREDIR="$HOME/bare" diff --git a/modules/roadmap/main.sh b/modules/roadmap/main.sh index a30894a..d20ea58 100755 --- a/modules/roadmap/main.sh +++ b/modules/roadmap/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "$(basename $0) - Not implemented" exit 1 diff --git a/modules/smfiles/lib.sh b/modules/smfiles/lib.sh index ef88278..fe39eae 100755 --- a/modules/smfiles/lib.sh +++ b/modules/smfiles/lib.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_ipfs diff --git a/modules/smfiles/main.sh b/modules/smfiles/main.sh index 0a063c9..9190fe1 100755 --- a/modules/smfiles/main.sh +++ b/modules/smfiles/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## sm files ## ## -h, --help Prints this help message diff --git a/modules/todos/main.sh b/modules/todos/main.sh index 4b9e580..fa000dd 100755 --- a/modules/todos/main.sh +++ b/modules/todos/main.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash ## ## Brief description ## diff --git a/src/build.sh b/src/build.sh index b09c0de..183f022 100755 --- a/src/build.sh +++ b/src/build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ ! -d $PWD/lib ] then mkdir $PWD/lib diff --git a/src/build_tree/ak_fs_build.sh b/src/build_tree/ak_fs_build.sh index 91ad759..d45fb0a 100755 --- a/src/build_tree/ak_fs_build.sh +++ b/src/build_tree/ak_fs_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Building lib/akfs.so" && \ gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akfs.c -o lib/akfs.so && \ diff --git a/src/build_tree/ak_log_build.sh b/src/build_tree/ak_log_build.sh index bbc8db6..ddd4e64 100755 --- a/src/build_tree/ak_log_build.sh +++ b/src/build_tree/ak_log_build.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo "Building lib/aklog.so" && \ gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aklog.c -o lib/aklog.so && \ diff --git a/src/new_lib.sh b/src/new_lib.sh index 94dd695..a079472 100755 --- a/src/new_lib.sh +++ b/src/new_lib.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash library="${1}" library_capitals="$(echo ${library} | tr '[:lower:]' '[:upper:]')" diff --git a/test_with_podman.sh b/test_with_podman.sh index 574c8ed..583cd66 100755 --- a/test_with_podman.sh +++ b/test_with_podman.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash podman_dir="podman" now="$(date -u +%s)" diff --git a/uninstall.sh b/uninstall.sh index c71ec03..ab9f14e 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash printf "Arching Kaos Tools - Uninstaller\n" echo '--------------------------------' if [ ! -d "$AK_WORKDIR" ] ; then printf "No arching-kaos found... Aborting...\n"; exit 1; fi diff --git a/update.sh b/update.sh index 556d11b..d9c83b4 100755 --- a/update.sh +++ b/update.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Updates bin files find $AK_BINDIR -type l | while read link -- cgit v1.2.3