mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-11 19:31:18 +00:00
fix in case of no preferences
This commit is contained in:
parent
94c2d606ca
commit
d38ceab06d
@ -1103,7 +1103,9 @@ if [ $PROJECT = ubuntu-base ]; then
|
||||
# live-build "helpfully" removes /etc/apt/preferences.d/* so we put a
|
||||
# copy somewhere it won't touch it.
|
||||
|
||||
cp -a /etc/apt/preferences.d /etc/apt/preferences.d.save
|
||||
if [ -n "$(ls -A /etc/apt/preferences.d)" ]; then
|
||||
cp -a /etc/apt/preferences.d /etc/apt/preferences.d.save
|
||||
fi
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user