Commits

Anonymous committed 458aa8c

add exit conditions VL-ISO-STD

  • Participants
  • Parent commits 38a3cf4

Comments (0)

Files changed (1)

var/vabs/VL-ISO-STD/src/VL-ISO-STD.SlackBuild

   pkg=$(echo $i|cut -d'/' -f2)
   slapt-get --install --reinstall --download-only --no-dep $pkg
   #mv the pkgs.
-  mv /home/ftp/pub/veclinux/packages/$pkg*t?z ISO/packages/$dir/
+  mv /home/ftp/pub/veclinux/packages/$pkg*t?z ISO/packages/$dir/ || exit 1
 done
 
 #mv the kernel from the kernel-pkg to the iso.
 cd PKG
 kern="$(ls ../a/kernel-[0-9]*txz)"
 echo "Using $kern"
-explodepkg $kern
-mv -v boot/vmlinuz* ../../isolinux/kernel/sata
+explodepkg $kern || exit 1
+mv -v boot/vmlinuz* ../../isolinux/kernel/sata || exit 1
 sed -i '/^if/d' install/doinst.sh
 sed -i '/^fi/d' install/doinst.sh
 makepkg -l y -c n $kern