cleanup winsup/doc/etc.{postinstall,preremove}.cygwin-doc.sh quote test variables, correct utility paths, define site in preremove

This commit is contained in:
Brian Inglis
2017-12-22 11:35:56 -07:00
committed by Corinna Vinschen
parent ae3bd4f49e
commit 3cc77b4f29
2 changed files with 8 additions and 7 deletions

View File

@@ -9,7 +9,8 @@
# exits quietly if directory does not exist as presumably no shortcuts desired
doc=/usr/share/doc/cygwin-doc
cygp=/bin/cygpath
site=https://cygwin.com
cygp=/usr/bin/cygpath
rm=/bin/rm
html=$doc/html
@@ -17,7 +18,7 @@ html=$doc/html
# check for programs
for p in $cygp $rm
do
if [ ! -x $p ]
if [ ! -x "$p" ]
then
echo "Can't find program '$p'"
exit 2