summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-19 17:53:21 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-19 17:53:21 +0000
commite6acb30c8bb1d91f317f2856f9a0b7ad951c6392 (patch)
treed0f4534dda83e6d66f4dae4ad1abdcbe5e081fa9
parentVersion bump (diff)
downloadgentoo-2-e6acb30c8bb1d91f317f2856f9a0b7ad951c6392.tar.gz
gentoo-2-e6acb30c8bb1d91f317f2856f9a0b7ad951c6392.tar.bz2
gentoo-2-e6acb30c8bb1d91f317f2856f9a0b7ad951c6392.zip
fix small error when dealing with unset args #142777 by x00000000
(Portage version: 2.1.1_pre5-r2)
-rw-r--r--sys-apps/hdparm/files/hdparm-init-73
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-apps/hdparm/files/hdparm-init-7 b/sys-apps/hdparm/files/hdparm-init-7
index 4a04fa05159c..2b0701ae5fe9 100644
--- a/sys-apps/hdparm/files/hdparm-init-7
+++ b/sys-apps/hdparm/files/hdparm-init-7
@@ -25,7 +25,8 @@ depend() {
}
do_hdparm() {
- if [[ -n ${args:=${all_args} ${!extra_args}} ]] ; then
+ local my_all_args="${all_args} ${!extra_args}"
+ if [[ -n ${args:=${my_all_args}} ]] ; then
local orgdevice=$(readlink -f ${device})
if [[ -b ${orgdevice} ]] ; then
ebegin "Running hdparm on ${device}"