}
-#########################################
-# Some often used funktions
-
-#------------------------------------------------------------------------------
-MKDIR() {
- local cmd="mkdir"
- if [[ "${VERBOSE}" == "y" ]] ; then
- cmd+=" --verbose"
- fi
- eval ${cmd} "$@"
-}
-
-#------------------------------------------------------------------------------
-MV() {
- local cmd="mv"
- if [[ "${VERBOSE}" == "y" ]] ; then
- cmd+=" --verbose"
- fi
- eval ${cmd} "$@"
-}
-
-#------------------------------------------------------------------------------
-RMDIR() {
- local cmd="rmdir"
- if [[ "${VERBOSE}" == "y" ]] ; then
- cmd+=" --verbose"
- fi
- eval ${cmd} "$@"
-}
-
-#------------------------------------------------------------------------------
-empty_line() {
-# if [[ "${QUIET}" == "y" ]] ; then
-# return 0
-# fi
- echo
-}
-
-#------------------------------------------------------------------------------
-check_for_root() {
- local my_id=$( id -u )
- if [[ "${my_id}" != "0" ]] ; then
- error "You must be ${RED}root${NORMAL} to execute this script."
- echo >&2
- exit 1
- fi
-}
-
################################################################################
prepare_dirs() {
fi
}
+#------------------------------------------------------------------------------
+MV() {
+ local cmd="mv"
+ if [[ "${VERBOSE}" == "y" ]] ; then
+ cmd+=" --verbose"
+ fi
+ if [[ "${SIMULATE}" == "y" ]] ; then
+ info "Executing: ${cmd} $*"
+ return
+ fi
+ eval ${cmd} "$@"
+}
+
#------------------------------------------------------------------------------
RM() {
eval ${cmd}
}
+#------------------------------------------------------------------------------
+RMDIR() {
+ local cmd="rmdir"
+ if [[ "${VERBOSE}" == "y" ]] ; then
+ cmd+=" --verbose"
+ fi
+ if [[ "${SIMULATE}" == "y" ]] ; then
+ info "Executing: ${cmd} $*"
+ return
+ fi
+ eval ${cmd} "$@"
+}
+
#------------------------------------------------------------------------------
CHOWN() {