#------------------------------------------------------------------------------
RM() {
+ local cmd="rm $*"
+ if [[ "${VERBOSE}" == "y" ]] ; then
+ cmd="rm --verbose $*"
+ fi
if [[ "${SIMULATE}" == "y" ]] ; then
- debug "Simulated removing of: $*"
+ info "Executing: ${cmd}"
return
fi
+ debug "Executing: ${cmd}"
if [[ "${VERBOSE}" != "y" ]] ; then
rm "$@"
else
}
+#------------------------------------------------------------------------------
+MKDIR() {
+
+ local cmd="mkdir $*"
+ if [[ "${VERBOSE}" == "y" ]] ; then
+ cmd="mkdir --verbose $*"
+ fi
+ if [[ "${SIMULATE}" == "y" ]] ; then
+ info "Executing: ${cmd}"
+ return
+ fi
+ debug "Executing: ${cmd}"
+ eval ${cmd}
+}
+
#------------------------------------------------------------------------------
CP() {
local cmd="cp $*"
- if [[ "${VERBOSE}" != "y" ]] ; then
+ if [[ "${VERBOSE}" == "y" ]] ; then
cmd="cp --verbose $*"
fi
if [[ "${SIMULATE}" == "y" ]] ; then
MV() {
local cmd="mv $*"
- if [[ "${VERBOSE}" != "y" ]] ; then
+ if [[ "${VERBOSE}" == "y" ]] ; then
cmd="mv --verbose $*"
fi
if [[ "${SIMULATE}" == "y" ]] ; then
CHOWN() {
local cmd="chown $*"
- if [[ "${VERBOSE}" != "y" ]] ; then
+ if [[ "${VERBOSE}" == "y" ]] ; then
cmd="chown --verbose $*"
fi
if [[ "${SIMULATE}" == "y" ]] ; then
CHMOD() {
local cmd="chmod $*"
- if [[ "${VERBOSE}" != "y" ]] ; then
+ if [[ "${VERBOSE}" == "y" ]] ; then
cmd="chmod --verbose $*"
fi
if [[ "${SIMULATE}" == "y" ]] ; then
LN() {
local cmd="ln $*"
- if [[ "${VERBOSE}" != "y" ]] ; then
+ if [[ "${VERBOSE}" == "y" ]] ; then
cmd="ln --verbose $*"
fi
if [[ "${SIMULATE}" == "y" ]] ; then