Skip to content

Commit

Permalink
stage2/00-copies-and-fills/02-run.sh: Fix re-runs of script (RPi-Dist…
Browse files Browse the repository at this point in the history
…ro#301)

Check that file exist before move.
  • Loading branch information
xranby authored and fuji246 committed Sep 13, 2019
1 parent a34a3ac commit cf02fb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stage2/00-copies-and-fills/02-run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf02fb1

Please sign in to comment.