mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-03-20 02:12:31 +00:00
updated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user