Simplify the CLI preinstall script a bit and hopefully get rid of an error.

svn path=/trunk/; revision=53296
This commit is contained in:
Gerald Combs 2013-11-13 02:50:25 +00:00
parent a1a63baa7c
commit 3009823060
1 changed files with 1 additions and 5 deletions

View File

@ -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"