Check that $TGZMODE is true to deduce that the set is extracted
from a .tgz instead of checking that $SRC_DIR != $SRC_ARG. These variables can be modified in different places, so it's less error prone.
This commit is contained in:
parent
99fac48d4f
commit
ec521efc45
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# $NetBSD: postinstall,v 1.122 2011/08/09 18:24:46 jmmv Exp $
|
# $NetBSD: postinstall,v 1.123 2011/09/06 14:08:05 jym Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
|
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@ -1805,7 +1805,7 @@ EOF
|
|||||||
list)
|
list)
|
||||||
echo "Source directory: ${SRC_DIR:-/}"
|
echo "Source directory: ${SRC_DIR:-/}"
|
||||||
echo "Target directory: ${DEST_DIR:-/}"
|
echo "Target directory: ${DEST_DIR:-/}"
|
||||||
if [ "${SRC_DIR}" != "${SRC_ARG}" ]; then
|
if $TGZMODE; then
|
||||||
echo " (extracted from: ${SRC_ARG})"
|
echo " (extracted from: ${SRC_ARG})"
|
||||||
fi
|
fi
|
||||||
list
|
list
|
||||||
@ -1825,7 +1825,7 @@ EOF
|
|||||||
# perform each check/fix
|
# perform each check/fix
|
||||||
#
|
#
|
||||||
echo "Source directory: ${SRC_DIR:-/}"
|
echo "Source directory: ${SRC_DIR:-/}"
|
||||||
if [ "${SRC_DIR}" != "${SRC_ARG}" ]; then
|
if $TGZMODE; then
|
||||||
echo " (extracted from: ${SRC_ARG})"
|
echo " (extracted from: ${SRC_ARG})"
|
||||||
fi
|
fi
|
||||||
echo "Target directory: ${DEST_DIR:-/}"
|
echo "Target directory: ${DEST_DIR:-/}"
|
||||||
|
Loading…
Reference in New Issue
Block a user