mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
0fc6687f3c
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
12 lines
403 B
Bash
12 lines
403 B
Bash
if [ ! -d etc/slapt-get ]; then
|
|
mkdir -p etc/slapt-get
|
|
fi
|
|
|
|
if [ -f etc/slapt-getrc -a ! -f etc/slapt-get/slapt-getrc ]; then
|
|
mv -f etc/slapt-getrc etc/slapt-get/slapt-getrc
|
|
fi
|
|
|
|
if [ ! -f etc/slapt-get/slapt-getrc ]; then
|
|
mv -f etc/slapt-get/slapt-getrc.new etc/slapt-get/slapt-getrc
|
|
else cmp etc/slapt-get/slapt-getrc etc/slapt-get/slapt-getrc.new >/dev/null 2>&1 && rm etc/slapt-get/slapt-getrc.new
|
|
fi
|