refcodes-batch.1.0.2.source-code.validate-media-player-folder-mirror-config.job Maven / Gradle / Ivy
#!/bin/bash
# -----------------------------------------------------------------------------
# Shows the according config:
# -----------------------------------------------------------------------------
function showMediaPlayerFolderMirrorConfiguration {
echo "The switch \"-j $JOB\" validates all \"MEDIA_PLAYER_FOLDER_MIRROR\" specific " >&2
echo "settings in the CONFIG file. Supported properties in the CONFIG file are: " >&2
# echo "--------------------------------------------------------------------------------" >&2
logSeparator
echo "MEDIA_PLAYER_FOLDER_MIRROR = (set to 'y' if we mirror our folder, else 'n') " >&2
# echo "--------------------------------------------------------------------------------" >&2
logSeparator
if [[ $# -eq 1 ]] ; then
showError "$1"
fi
}
# -----------------------------------------------------------------------------
if [[ $VERBOSE = y ]] ; then
echo "\"MEDIA_PLAYER_FOLDER_MIRROR\" configuration validation is activated ..." >&2
# echo "--------------------------------------------------------------------------------" >&2
logSeparator
fi
if [[ $HELP = y ]] ; then
showMediaPlayerFolderMirrorConfiguration
fi
if [[ $HELP = n ]] ; then
if [[ $VERBOSE = y ]] ; then
showProperty "MEDIA_PLAYER_FOLDER_MIRROR"
logSeparator
fi
showSuccess "\"MEDIA_PLAYER_FOLDER_MIRROR\" configuration for \"$CONFIG\" validated !"
fi