Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

-s checks if the file has size greater than zero... just safer

  • Loading branch information...
commit 8a50de05a550516aa2d5231711af342c0b11bfc5 1 parent 939b429
@fabiomcosta authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .bash_profile
View
2  .bash_profile
@@ -11,7 +11,7 @@ export_if_exists() {
}
execute_if_exists() {
- if [[ -e "$2" ]]; then
+ if [[ -s "$2" ]]; then
$1 "$2"
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.