|
|
@ -134,9 +134,9 @@ if [ $# -eq 1 ]; then
|
|
|
|
for newphoto in $newphotos; do
|
|
|
|
for newphoto in $newphotos; do
|
|
|
|
cp --parents $newphoto .lowres/
|
|
|
|
cp --parents $newphoto .lowres/
|
|
|
|
done
|
|
|
|
done
|
|
|
|
# cd - also creates output (the current wd). Redirect to null suppresses the output.
|
|
|
|
|
|
|
|
cd - >/dev/null
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
# revert the effects of cd above. Redirect to null suppresses the output.
|
|
|
|
|
|
|
|
cd - >/dev/null
|
|
|
|
# in the low-res tree, find any photo larger than specific size (500kB)
|
|
|
|
# in the low-res tree, find any photo larger than specific size (500kB)
|
|
|
|
largephotos="$(find /media/bay/taha/chepec/thesis/assets/photos/.lowres/ -size +500k)"
|
|
|
|
largephotos="$(find /media/bay/taha/chepec/thesis/assets/photos/.lowres/ -size +500k)"
|
|
|
|
for largephotofilename in $largephotos; do
|
|
|
|
for largephotofilename in $largephotos; do
|
|
|
|