index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-11-09 21:31:29 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2009-11-09 21:41:13 -0300 |
commit | f32a5c5b20ee3e18d418b2c737b4cb10be3837e3 (patch) | |
tree | 856c747dcf70315ed5f67cd42cde1b0499378fab | |
parent | 3f1ee07d842c4f88deaebc83386c01b4b86e211e (diff) |
-rwxr-xr-x | archiso/mkarchiso | 10 |
diff --git a/archiso/mkarchiso b/archiso/mkarchiso index b6d0f54..e71660e 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -159,13 +159,13 @@ _mksquash () { sqimg="${work_dir}/iso/$(basename ${1}).sqfs" echo "====> Generating SquashFS image for '${1}'" if [ -e "${sqimg}" ]; then - if [ "${FORCE}" = "y" ]; then - echo -n "Removing old SquashFS image..." + dirhaschanged=$(find ${1} -newer ${sqimg}) + if [ "${dirhaschanged}" != "" ]; then + echo "SquashFS image '${sqimg}' is not up to date, rebuilding..." rm "${sqimg}" - echo "done." else - echo "error: SquashFS image '${sqimg}' already exists, aborting." - exit 1 + echo "SquashFS image '${sqimg}' is up to date, skipping." + return fi fi |