From 897293de2cb26b2dec01e0b3595f58178af9c1b3 Mon Sep 17 00:00:00 2001 From: "taha@asks2" Date: Sun, 16 Sep 2018 19:46:17 +0200 Subject: [PATCH] Misplaced cd command caused working directory errors. Fixed. --- chertex.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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