Fix logging command in runtest.sh to correctly pass arguments and remove unnecessary blank line
This commit is contained in:
parent
9c56b2ac91
commit
42cb854f57
1 changed files with 1 additions and 2 deletions
|
@ -42,7 +42,7 @@ if [ -z "${SCRIPT_LOG_STARTED:-}" ]; then
|
||||||
BOOT_ID=$(cat /proc/sys/kernel/random/boot_id)
|
BOOT_ID=$(cat /proc/sys/kernel/random/boot_id)
|
||||||
LOG_FILE="${HOME}/${BOOT_ID}-session.log"
|
LOG_FILE="${HOME}/${BOOT_ID}-session.log"
|
||||||
echo "[+] Starting session logging to $LOG_FILE"
|
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
|
fi
|
||||||
|
|
||||||
# === Now start your real script ===
|
# === Now start your real script ===
|
||||||
|
@ -262,7 +262,6 @@ if [ "$LISTENER_ENABLED" -eq 0 ]; then
|
||||||
sudo systemctl stop kismet
|
sudo systemctl stop kismet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$NO_ENRICH" -eq 0 ]; then
|
if [ "$NO_ENRICH" -eq 0 ]; then
|
||||||
log "Enriching data..."
|
log "Enriching data..."
|
||||||
KISMET_LOG=$(find "$KISMET_LOG_DIR" -type f -name "*.pcapng" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2-)
|
KISMET_LOG=$(find "$KISMET_LOG_DIR" -type f -name "*.pcapng" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2-)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue