diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-08-19 17:53:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-08-19 17:53:21 +0000 |
commit | e6acb30c8bb1d91f317f2856f9a0b7ad951c6392 (patch) | |
tree | d0f4534dda83e6d66f4dae4ad1abdcbe5e081fa9 | |
parent | Version bump (diff) | |
download | gentoo-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-7 | 3 |
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}" |