Skip to content

Commit f6aeb85

Browse files
committed
update tkl bashlib
1 parent 5635758 commit f6aeb85

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

overlays/turnkey.d/tkl-bashlib/usr/local/src/tkl-bashlib/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export DEBIAN_FRONTEND=noninteractive
2525

2626
# functions for errors and warnings
2727
fatal() { echo "FATAL: ${@}" >&2; exit 1; }
28-
warn() { echo "WARN: ${@}" >&2; exit 1; }
28+
warn() { echo "WARN: ${@}" >&2; }
2929

3030
# check for integers
3131
# if any elements of $@ are _not_ integers - will return 1
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# (c) 2026 - TurnKey GNU/Linux - all rights reserved
2+
#
3+
# This script is part of TKLDev BashLib.
4+
#
5+
# The source can be located locally on TKLDev:
6+
# ${FAB_PATH}/common/overlays/turnkey.d/tkl-bashlib
7+
#
8+
# To use it within a conf script, first source the base 'init' script:
9+
#
10+
# source /usr/local/src/tkl-bashlib/init
11+
#
12+
# For more info, including licence, please see the README.rst (should be in
13+
# the same dir as this file).
14+
15+
dl() {
16+
cd "$2"
17+
if [[ "$FAB_HTTP_PROXY" ]]; then
18+
http_proxy="$FAB_HTTP_PROXY" https_proxy="$FAB_HTTPS_PROXY" wget "$1"
19+
else
20+
wget "$1"
21+
fi
22+
cd -
23+
}

0 commit comments

Comments
 (0)