From 42cb854f57d17041a18e94333e41b7dc3330b998 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Fri, 2 May 2025 14:24:29 -0500 Subject: [PATCH] Fix logging command in runtest.sh to correctly pass arguments and remove unnecessary blank line --- runtest.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtest.sh b/runtest.sh index 305add1..78643b1 100755 --- a/runtest.sh +++ b/runtest.sh @@ -42,7 +42,7 @@ if [ -z "${SCRIPT_LOG_STARTED:-}" ]; then BOOT_ID=$(cat /proc/sys/kernel/random/boot_id) LOG_FILE="${HOME}/${BOOT_ID}-session.log" echo "[+] Starting session logging to $LOG_FILE" - exec script -q "$LOG_FILE" --return --flush --command "$0" + exec script -q "$LOG_FILE" --return --flush --command "$0" "$@" fi # === Now start your real script === @@ -262,7 +262,6 @@ if [ "$LISTENER_ENABLED" -eq 0 ]; then sudo systemctl stop kismet fi - if [ "$NO_ENRICH" -eq 0 ]; then log "Enriching data..." KISMET_LOG=$(find "$KISMET_LOG_DIR" -type f -name "*.pcapng" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2-)