add debug message to investigate install locking
Change-Id: I89240199751d5408b60ff12f71e2cd4383dde181 Partial-Bug: 1400924
This commit is contained in:
parent
15ffc5e1aa
commit
7330c59f36
@ -13,10 +13,10 @@ if [ -f $LOCKFILE ]; then
|
|||||||
LOCKED_PID=$(cat $LOCKFILE | head -n 1)
|
LOCKED_PID=$(cat $LOCKFILE | head -n 1)
|
||||||
ps -p $LOCKED_PID &> /dev/null
|
ps -p $LOCKED_PID &> /dev/null
|
||||||
if [[ "$?" != "0" ]]; then
|
if [[ "$?" != "0" ]]; then
|
||||||
echo "the progress of pid $LOCKED_PID does not exist"
|
echo "the progress of pid $LOCKED_PID does not exist: `ps -p $LOCKED_PID`"
|
||||||
rm -f $LOCKFILE
|
rm -f $LOCKFILE
|
||||||
else
|
else
|
||||||
echo "the progress of pid $LOCKED_PID is running"
|
echo "the progress of pid $LOCKED_PID is running: `ps -p $LOCKED_PID`"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user