mirror of
https://github.com/flynx/ImageGrid.git
synced 2026-01-05 18:01:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3a332225a0
commit
c586c36877
@ -118,6 +118,7 @@ if ! [ -z "$2" ] ; then
|
|||||||
TITLE=" - $2"
|
TITLE=" - $2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BASE=${BASE%/}/
|
||||||
DRIVE=${1}
|
DRIVE=${1}
|
||||||
|
|
||||||
__BASE=$BASE
|
__BASE=$BASE
|
||||||
@ -198,9 +199,9 @@ while true ; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# sanity check...
|
# sanity check...
|
||||||
if ! [ -e "${BASE}/${DRIVE}" ] ; then
|
if ! [ -e "${BASE}${DRIVE}" ] ; then
|
||||||
echo
|
echo
|
||||||
echo "ERR: ${BASE}/${DRIVE}: does not exist, nothing to copy."
|
echo "ERR: ${BASE}${DRIVE}: does not exist, nothing to copy."
|
||||||
echo
|
echo
|
||||||
if [[ $INTERACTIVE || ! $DRIVE ]] ; then
|
if [[ $INTERACTIVE || ! $DRIVE ]] ; then
|
||||||
continue
|
continue
|
||||||
@ -236,8 +237,8 @@ while true ; do
|
|||||||
|
|
||||||
mkdir -vp "$DIR"
|
mkdir -vp "$DIR"
|
||||||
|
|
||||||
echo "Copying files from ${BASE}/${DRIVE} (~`du -hs "${BASE}/${DRIVE}" | cut -f 1`)..."
|
echo "Copying files from ${BASE}${DRIVE} (~`du -hs "${BASE}${DRIVE}" | cut -f 1`)..."
|
||||||
$COPY $COPYFLAGS ${BASE}/${DRIVE}/* "$DIR" \
|
$COPY $COPYFLAGS ${BASE}${DRIVE}/* "$DIR" \
|
||||||
2> >(tee "${DIR}"/copy-err.log)
|
2> >(tee "${DIR}"/copy-err.log)
|
||||||
# no errors -> remove log...
|
# no errors -> remove log...
|
||||||
if ! [ -s "${DIR}/copy-err.log" ] ; then
|
if ! [ -s "${DIR}/copy-err.log" ] ; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user