WizardKit/scripts/ddrescue-tui

22 lines
444 B
Bash
Executable file

#!/bin/bash
#
## Wizard Kit: ddrescue TUI Launcher
# TODO: Replace relative paths with absolute
# Check if running under Linux
os_name="$(uname -s)"
if [[ "$os_name" == "Darwin" ]]; then
os_name="macOS"
fi
if [[ "$os_name" != "Linux" ]]; then
echo "This script is not supported under $os_name." 1>&2
exit 1
fi
source launch-in-tmux
SESSION_NAME="ddrescue-tui"
WINDOW_NAME="ddrescue TUI"
TMUX_CMD="ddrescue-tui.py"
launch_in_tmux "$@"