#!/usr/bin/env bash

# SCRIPT_DIR=$(dirname $(realpath $0))
# BOOK_DIR=${SCRIPT_DIR/\/.Books/}

# PERIOD=10

# bronch() {
#   screen -d -m nohup $MANUSKRIPT_BIN "$1" &
#   screen -d -m nohup $SCRIPT_DIR/branchy.sh "$1" &
# }

# worch() {
#   screen -d -m nohup $MANUSKRIPT_BIN "$1" &
#   screen -d -m nohup $SCRIPT_DIR/watchy.sh "$1" &
# }

# if [[ -f "$1" && -d "${1/.msk/}" ]]; then
#   bronch "$1"
# elif [[ -d "$1" && -f "$1.msk" ]]; then
#   bronch "$1.msk"
# fi

# if [[ -e "$1" && $(cat $1 | wc -c) -gt 10 ]]; then
#   bronch "$1"
# else
#   screen -d -m nohup $MANUSKRIPT_BIN &
# fi

screen -d -m nohup $MANUSKRIPT_BIN &>/dev/null &