Misplaced cd command caused working directory errors. Fixed.

master
Taha Ahmed 6 years ago
parent fb97a2acc8
commit 897293de2c

@ -134,9 +134,9 @@ if [ $# -eq 1 ]; then
for newphoto in $newphotos; do
cp --parents $newphoto .lowres/
done
# cd - also creates output (the current wd). Redirect to null suppresses the output.
cd - >/dev/null
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)
largephotos="$(find /media/bay/taha/chepec/thesis/assets/photos/.lowres/ -size +500k)"
for largephotofilename in $largephotos; do

Loading…
Cancel
Save