commit | 01a45a5883c71a4acbd36262b5f492a3d0d42d50 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Sep 01 16:36:43 2015 +0000 |
committer | Android Git Automerger <android-git-automerger@android.com> | Tue Sep 01 16:36:43 2015 +0000 |
tree | ac0972bec153c712e754cf33e06a42bb6b462398 | |
parent | 782285b3be6fd647284db735010ae0cbd55529bd [diff] | |
parent | e407eedc064aba5ce4e2580d39a7b5926f5e9a7e [diff] |
am e407eedc: Merge "Don\'t fork and exec ls when the shell can stat files." * commit 'e407eedc064aba5ce4e2580d39a7b5926f5e9a7e': Don't fork and exec ls when the shell can stat files.
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 @@ */[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