summaryrefslogtreecommitdiff
path: root/dh_lib
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 04:45:36 +0000
committerjoey <joey>1999-08-17 04:45:36 +0000
commit3486d848644af197ded8a7e8d8c533dc30a5e574 (patch)
tree8df23969a7ed46d09bc004bad87416c1ee830b57 /dh_lib
parent17f711b58fbe60225ed2c63609042bcd548fc43d (diff)
downloaddebhelper-3486d848644af197ded8a7e8d8c533dc30a5e574.tar.gz
r54: Initial Import
Diffstat (limited to 'dh_lib')
-rw-r--r--dh_lib8
1 files changed, 6 insertions, 2 deletions
diff --git a/dh_lib b/dh_lib
index 020f9e6d..7c7c2e18 100644
--- a/dh_lib
+++ b/dh_lib
@@ -9,7 +9,9 @@
# involving redirection. Use complex_doit instead.
doit() {
verbose_echo "$@"
- eval '$@'
+ if [ ! "$DH_NO_ACT" ]; then
+ eval '$@'
+ fi
}
@@ -17,7 +19,9 @@ doit() {
# are evaled with double quotes. This version can handle compound commands.
complex_doit() {
verbose_echo "$@"
- eval "$@"
+ if [ ! "$DH_NO_ACT" ]; then
+ eval "$@"
+ fi
}
# Echo something if the verbose flag is on.