cp -v $(ls -v ~/immudex-lhe/${arch}/chroot/boot/initrd.img-* | tail -1) ~/immudex-lhe/${arch}/staging/live/initrd >> ~/immudex_build.log 2>&1;
if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
- if [ "$3" ]; then
+ if [ "$2" ]; then
echo -n "Creating version file...";
- echo $3 > ~/immudex-lhe/${arch}/staging/live/version;
+ echo $2 > ~/immudex-lhe/${arch}/staging/live/version;
if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
fi