mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
deal with case where target of symlink is gone
This commit is contained in:
parent
fe235b2348
commit
ca09c48d95
1 changed files with 9 additions and 3 deletions
|
@ -7,9 +7,15 @@ if [ $1 = 'debug' ]; then
|
|||
HOMELOC=~/.android/debug.keystore
|
||||
HERELOC=$(pwd)/$(dirname $0)/debug.keystore
|
||||
|
||||
if [ -L $HOMELOC ]; then
|
||||
if cmp $(readlink $HOMELOC) $HERELOC; then
|
||||
exit 0
|
||||
if [ -L $HOMELOC ]; then
|
||||
if [ -e $(readlink $HOMELOC) ]; then
|
||||
if cmp $(readlink $HOMELOC) $HERELOC; then
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
echo "ERROR: link $HOMELOC no longer valid"
|
||||
echo "maybe: \"rm $HOMELOC ???"
|
||||
exit 1
|
||||
fi
|
||||
elif [ -e $HOMELOC ]; then
|
||||
cat << EOF
|
||||
|
|
Loading…
Reference in a new issue