X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fgetme.sh;fp=scripts%2Frev_control%2Fgetme.sh;h=f493ddbaa0877680d94ddd7079612faf5bb3d9b8;hb=6945cfd7e932ab839c99534263cda6b97bd6ac9b;hp=c2bc0cfa641f99d17f5bdfbf0ae8c3eb151a9670;hpb=f8b3f5174d7b151b84618b72f69556ea9ad31acf;p=feisty_meow.git diff --git a/scripts/rev_control/getme.sh b/scripts/rev_control/getme.sh old mode 100644 new mode 100755 index c2bc0cfa..f493ddba --- a/scripts/rev_control/getme.sh +++ b/scripts/rev_control/getme.sh @@ -6,7 +6,11 @@ source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh" # trickery to ensure we can always update this file, even when the operating system has some # rude behavior with regard to file locking (ahem, windows...). -if [ "$(pwd)" != "$TMP" ]; then +# and even more rudeness is that the pwd and $TMP may not always be in the same form, +# which causes endless confusion and badness. that's why we get the pwd reading for TMP +# first so we can do an orange-to-orange compare. +tmpdir="$(cd $TMP; \pwd)" +if [ "$(\pwd)" != "$tmpdir" ]; then if [ ! -z "$SHELL_DEBUG" ]; then echo "Moving to the TMP directory to avoid file access conflicts..." fi