stage2/00-copies-and-fills/02-run.sh: Fix re-runs of script (#301)

Check that file exist before move.
This commit is contained in:
Xerxes Rånby 2019-07-02 15:54:25 +02:00 committed by XECDesign
parent 3db1168fbd
commit 57ef9b88e3

View file

@ -1,3 +1,6 @@
#!/bin/bash -e
mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
if [ -f "${ROOTFS_DIR}/etc/ld.so.preload" ]; then
mv "${ROOTFS_DIR}/etc/ld.so.preload" "${ROOTFS_DIR}/etc/ld.so.preload.disabled"
fi