#!/bin/bash
# Copyright (c) 2023 Walter Fey DL8FCL
# This file is under MIT license
#
# CatRadio requires the binary and the configuration files in the same
# subdirectory. This script is a hack to install CatRadio to the home
# directory and keep it up to date.

if [ -d ~/.CatRadio ]; then
   cp -u /usr/bin/CatRadio-bin ~/.CatRadio
   ~/.CatRadio/CatRadio-bin
else
   mkdir ~/.CatRadio
   cp /usr/bin/CatRadio-bin ~/.CatRadio
   ~/.CatRadio/CatRadio-bin
fi

