Files
dotfiles-and-setup/src_files/.local/bin/launch-reaper

22 lines
688 B
Bash
Executable File

#!/bin/sh
# trying the "portable install" option; using this launch script to point to that
source "$XDG_CONFIG_HOME/zsh/.zshenv"
reaper_portable_exec_linux="$DIR_REAPER_PORTABLE_LINUX/REAPER/reaper"
reaper_portable_ini_file_linux="$DIR_REAPER_PORTABLE_LINUX/reaper-config/reaper.ini"
[[ ! -x "$reaper_portable_exec_linux" ]] && {
echo "reaper missing or not executable: $reaper_portable_exec_linux" >&2
exit 1
}
[[ ! -r "$reaper_portable_ini_file_linux" ]] && {
echo "reaper.ini missing or not readable: $reaper_portable_ini_file_linux" >&2
exit 1
}
nohup \
$reaper_portable_exec_linux \
-cfgfile $reaper_portable_ini_file_linux \
> /dev/null 2>&1 \
&