diff --git a/chertex.sh b/chertex.sh index 978751d..6e27428 100755 --- a/chertex.sh +++ b/chertex.sh @@ -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