diff options
author | Elliott Hughes <enh@google.com> | 2015-09-01 16:36:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-01 16:36:43 +0000 |
commit | 01a45a5883c71a4acbd36262b5f492a3d0d42d50 (patch) | |
tree | ac0972bec153c712e754cf33e06a42bb6b462398 | |
parent | 782285b3be6fd647284db735010ae0cbd55529bd (diff) | |
parent | e407eedc064aba5ce4e2580d39a7b5926f5e9a7e (diff) | |
download | dhcpcd-brillo-m7-mr-dev.tar.gz |
am e407eedc: Merge "Don\'t fork and exec ls when the shell can stat files."android-n-preview-2android-n-preview-1brillo-m9-releasebrillo-m9-devbrillo-m8-releasebrillo-m8-devbrillo-m7-releasebrillo-m7-mr-devbrillo-m7-devbrillo-m10-releasebrillo-m10-dev
* commit 'e407eedc064aba5ce4e2580d39a7b5926f5e9a7e':
Don't fork and exec ls when the shell can stat files.
-rwxr-xr-x | dhcpcd-run-hooks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpcd-run-hooks b/dhcpcd-run-hooks index 8b68c69..a39a133 100755 --- a/dhcpcd-run-hooks +++ b/dhcpcd-run-hooks @@ -25,7 +25,7 @@ do */[0-9][0-9]"-${skip}.sh") continue 2;; esac done - if ls "${hook}" >/dev/null 2>&1; then + if [ -f "${hook}" ]; then . "${hook}" fi done |