mirror of https://github.com/CIRCL/Circlean
More debug statements
parent
f191621abc
commit
ce6ee4ad85
|
@ -3,6 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
# To make debugging easier
|
||||||
|
echo "KittenGroomer: in groomer.sh" 1>&2
|
||||||
|
|
||||||
source ./constraint.sh
|
source ./constraint.sh
|
||||||
if ! [ "${ID}" -ge "1000" ]; then
|
if ! [ "${ID}" -ge "1000" ]; then
|
||||||
echo "This script cannot run as root."
|
echo "This script cannot run as root."
|
||||||
|
@ -101,8 +104,10 @@ do
|
||||||
mkdir -p "${target_dir}"
|
mkdir -p "${target_dir}"
|
||||||
LOGFILE="${LOGS}/processing.txt"
|
LOGFILE="${LOGS}/processing.txt"
|
||||||
|
|
||||||
|
echo "==== Starting processing of /media/${SRC} to ${target_dir}. ====" 1>&2
|
||||||
echo "==== Starting processing of /media/${SRC} to ${target_dir}. ====" >> ${LOGFILE}
|
echo "==== Starting processing of /media/${SRC} to ${target_dir}. ====" >> ${LOGFILE}
|
||||||
generic.py --source /media/${SRC} --destination ${target_dir} || true
|
generic.py --source /media/${SRC} --destination ${target_dir} || true
|
||||||
|
echo "==== Done with /media/${SRC} to ${target_dir}. ====" 1>&2
|
||||||
echo "==== Done with /media/${SRC} to ${target_dir}. ====" >> ${LOGFILE}
|
echo "==== Done with /media/${SRC} to ${target_dir}. ====" >> ${LOGFILE}
|
||||||
|
|
||||||
ls -lR "${target_dir}"
|
ls -lR "${target_dir}"
|
||||||
|
@ -110,5 +115,8 @@ do
|
||||||
let PARTCOUNT=`expr $PARTCOUNT + 1`
|
let PARTCOUNT=`expr $PARTCOUNT + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# To make debugging easier
|
||||||
|
echo "KittenGroomer: done with groomer.sh" 1>&2
|
||||||
|
|
||||||
# The cleanup is automatically done in the function clean called when
|
# The cleanup is automatically done in the function clean called when
|
||||||
# the program quits
|
# the program quits
|
||||||
|
|
Loading…
Reference in New Issue