diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-11-13 02:50:25 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-11-13 02:50:25 +0000 |
commit | 3009823060f1a503826e6b5b89727843877b3c90 (patch) | |
tree | e47e017e95038128752f5b56c0aa189c32303988 /packaging/macosx/Scripts/cli-preinstall.sh | |
parent | a1a63baa7c76933f027738c9f787a771f49daef7 (diff) |
Simplify the CLI preinstall script a bit and hopefully get rid of an error.
svn path=/trunk/; revision=53296
Diffstat (limited to 'packaging/macosx/Scripts/cli-preinstall.sh')
-rwxr-xr-x | packaging/macosx/Scripts/cli-preinstall.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packaging/macosx/Scripts/cli-preinstall.sh b/packaging/macosx/Scripts/cli-preinstall.sh index 8a9c51a619..a8d928cae0 100755 --- a/packaging/macosx/Scripts/cli-preinstall.sh +++ b/packaging/macosx/Scripts/cli-preinstall.sh @@ -1,15 +1,11 @@ #!/bin/sh -CLI_PATH="$2" - # Create any missing directories with mode 755, owned by root:wheel. # Don't blindly clobber anything that's already there. function build_path() { echo "Checking $1" - if [ -d "$1" ] ; then - return "" - else + if [ ! -d "$1" ] ; then TRIMMED=`dirname "$1"` if [ ! -d "$TRIMMED" ] ; then build_path "$TRIMMED" |