|
From: <sv...@va...> - 2011-02-03 17:49:15
|
Author: bart
Date: 2011-02-03 17:49:07 +0000 (Thu, 03 Feb 2011)
New Revision: 11521
Log:
vg-in-place: made sure that soft links to this script work fine too.
Modified:
trunk/vg-in-place
Modified: trunk/vg-in-place
===================================================================
--- trunk/vg-in-place 2011-02-03 17:47:50 UTC (rev 11520)
+++ trunk/vg-in-place 2011-02-03 17:49:07 UTC (rev 11521)
@@ -4,6 +4,9 @@
# $0 (the name of the file) and $PWD.
dollarzero=$0
+if [ -h "${dollarzero}" ]; then
+ dollarzero=`readlink "${dollarzero}"`
+fi
if [ "${dollarzero#/}" = "${dollarzero}" ];
then
|