mirror of
https://github.com/kforney/pentest-distro-builder.git
synced 2024-05-16 15:34:50 -06:00
Kaj Forney
4fdc60b6a2
Former-commit-id: 9f5a64d372
Former-commit-id: 89d8a1302bd2a72239fbe9ad9820be4ecda76cab
25 lines
464 B
Bash
Executable file
25 lines
464 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
source $CURRENT_DIR/helpers/helpers.sh
|
|
|
|
number_of_windows() {
|
|
tmux list-windows |
|
|
wc -l |
|
|
sed "s/ //g"
|
|
}
|
|
|
|
main() {
|
|
# start tmux in the background
|
|
tmux new -d
|
|
tmux new-window
|
|
|
|
local number_of_windows="$(number_of_windows)"
|
|
if ! [ "$number_of_windows" -eq 2 ]; then
|
|
fail_helper "Incorrect number of windows. Expected 2, got $number_of_windows"
|
|
fi
|
|
exit_helper
|
|
}
|
|
main
|