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