Closed GoogleCodeExporter closed 9 years ago
Assign to James Rose.
Original comment by markjcrane@gmail.com
on 18 Sep 2012 at 1:50
It is not hard coded, but I agree it does not always work as expected. To the
best of my knowledge there is not a sure fire way to get the exact path to a
script that's running (from inside the script itself). Here's how I've taken
the approach:
#Check for new version
WHEREAMI=$(echo "`pwd`/`basename $0`")
wget $URLSCRIPT -O /tmp/install_fusionpbx.latest
CURMD5=$(md5sum "$WHEREAMI" | sed -e "s/\ .*//")
echo "The md5sum of the current script is: $CURMD5"
If you know of a better way, I'd appreciate the knowledge.
Original comment by James.O....@gmail.com
on 18 Sep 2012 at 2:30
2 years un delt with no updates closing
Original comment by r.ne...@gmail.com
on 10 Dec 2014 at 7:51
Original issue reported on code.google.com by
tec...@gmail.com
on 7 Sep 2012 at 4:43