Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

aoe2de-set-initial-umu.sh (Source)

#!/bin/sh
scriptdir="$( dirname "$( readlink -f "${0}" )" )"
indir="$( readlink -f "${scriptdir}/../initial-files" )"
destdir="${HOME}/.local/share"
if test -n "${VERBOSE}" ;
then
    echo "cp -pr \"${indir}/umu\" \"${destdir}\""
fi
if test -n "${APPLY}" ;
then
    mkdir -p "${destdir}"
    cp -pr "${indir}/umu" "${destdir}"
else
    echo "Dry run only! Please run with APPLY=1 to apply the initial umu files."
fi