chiark / gitweb /
don't use 'command -v', it's not POSIX, hardcode /usr/sbin/install-docs
authoraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sat, 7 Dec 2002 06:35:50 +0000 (06:35 +0000)
committeraph <aph@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Sat, 7 Dec 2002 06:35:50 +0000 (06:35 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@1961 313b444b-1b9f-4f58-a734-7bb04f332e8d

debian/prerm

index ba7b3df3b9b110c546066ad54d45b8ce29faaa06..a95304d2b42714f4a4872e680963be599d25082c 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if [ "$1" = "remove" -o "$1" = "upgrade" ]; then
-  if command -v install-docs >/dev/null 2>&1; then
+  if [ -x /usr/sbin/install-docs ]; then
     install-docs -r developers-reference
   fi
   if [ -L /usr/doc/developers-reference ]; then