Skip to content

Commit 724e11d

Browse files
committed
docker fix
1 parent fb55756 commit 724e11d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hackshell.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ shred() {
435435

436436
command -v srm >/dev/null || srm() { shred "$@"; }
437437

438-
command -v strings >/dev/null || strings() { perl -nle 'print $& while m/[[:print:]]{8,}/g' "$@"; }
438+
command -v strings >/dev/null || { command -v perl >/dev/null && strings() { perl -nle 'print $& while m/[[:print:]]{8,}/g' "$@"; }; }
439+
command -v strings >/dev/null || { command -v grep >/dev/null && strings() { grep -a -o -E '[[:print:]]{8,}' "$@"; }; }
439440

440441
bounceinit() {
441442
[[ -n "$_is_bounceinit" ]] && return
@@ -1144,6 +1145,11 @@ gsnc() {
11441145
[ -z "$GSNC" ] && return 255
11451146
_GS_ALLOWNOARG=1 "$GSNC" "$@"
11461147
}
1148+
# Show the GSNC config.
1149+
gsconfig() {
1150+
GS_CONFIG_CHECK=1 GS_CONFIG_READ="$GSNC" gsnc || return
1151+
echo "GS_CONFIG_BIN='$GSNC'"
1152+
}
11471153
command -v gs-netcat >/dev/null || gs-netcat() { gsnc "$@"; }
11481154
11491155
gsinst() {

0 commit comments

Comments
 (0)