File CatRotator_start of Package CatRotator
#!/bin/bash
# Copyright (c) 2023 Walter Fey DL8FCL
# This file is under MIT license
#
# CatRotator requires the binary and the configuration files in the same
# subdirectory. This script is a hack to install CatRotator to the home
# directory and keep it up to date.
if [ -d ~/.CatRotator ]; then
cp -u /usr/bin/CatRotator-bin ~/.CatRotator
~/.CatRotator/CatRotator-bin
else
mkdir ~/.CatRotator
cp /usr/bin/CatRotator-bin ~/.CatRotator
~/.CatRotator/CatRotator-bin
fi