Try to catch the case of a non-writable source directory before
running configure.
This commit is contained in:
parent
f3434c2539
commit
1bb7a9f736
|
@ -183,6 +183,14 @@ then {
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -w . ]
|
||||||
|
then {
|
||||||
|
echo "The source directory is not writable. You probably extracted the sources as root."
|
||||||
|
echo "You should remove the source tree and extract it again as a normal user."
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
# check whether RPM installed, and if it is, remove any old wine rpm.
|
# check whether RPM installed, and if it is, remove any old wine rpm.
|
||||||
hash rpm &>/dev/null
|
hash rpm &>/dev/null
|
||||||
RET=$?
|
RET=$?
|
||||||
|
|
Loading…
Reference in New Issue