This commit is contained in:
emmett1
2017-07-26 11:16:55 +08:00
parent f5f5a5c815
commit 756ab95020

View File

@@ -2,6 +2,7 @@
bindir="/usr/bin"
confdir="/etc"
funcdir="/usr/share/scratchpkg"
if [ ! -d $bindir ]; then
mkdir -pv $bindir
@@ -22,3 +23,10 @@ else
[ ! -f $confdir/scratchpkg.conf ] && cp -v scratchpkg.conf $confdir || echo "$confdir/scratchpkg.conf exists"
[ ! -d $confdir/scratchpkg.conf.d ] && cp -Rv scratchpkg.conf.d $confdir || echo "$confdir/scratchpkg.conf.d exists"
fi
if [ ! -d $funcdir ]; then
mkdir -pv $funcdir
[ ! -f $funcdir/functions ] && cp -v functions $funcdir
else
[ ! -f $funcdir/functions ] && cp -v functions $funcdir || echo "$funcdir/functions exists"
fi