kaleid is remade if there is an error

This commit is contained in:
Adrien Bourmault 2019-05-12 20:30:53 +02:00
parent c20ebe6ffc
commit 2623fc2d77
3 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#=----------------------------------------------------------------------------=#
.PHONY: all test test32 debug gdb install_mbr dust clean OS/K
.DELETE_ON_ERROR: $(BINDIR)/kaleid
## VARIABLES ----------------------------------------------------------------- #

View File

@ -255,8 +255,10 @@
├── AUTHORS
├── ChangeLog
├── COPYING
├── kaleid32_disasm.asm
├── kaleid64_disasm.asm
├── Makefile
├── ProjectTree
└── README.md
41 directories, 193 files
41 directories, 195 files

View File

@ -32,7 +32,7 @@ set -e #exit if error
echo ${CL2}[mount.sh]${NC} Mouting image... \(losetup\)${CL3}
sudo losetup -D > /dev/null
sudo losetup /dev/loop0 $1 -o 1048576 /dev/null #mounting the logical partition
sudo losetup /dev/loop0 $1 -o 1048576 > /dev/null #mounting the logical partition
echo ${CL2}[mount.sh]${NC} Mouting volume... \(mount\)${CL3}
sudo mount -t vfat /dev/loop0 $2 -o rw,uid=$(id -u),gid=$(id -g) > /dev/null
echo ${CL2}[mount.sh]${CL} Terminated without error.${CL3}