From b66d05f1c3d8ed732dfeefcd4d55eea69e5a0cf3 Mon Sep 17 00:00:00 2001
From: Enris Nogare von Tein <ent13@inf.ufpr.br>
Date: Fri, 3 Jun 2016 08:46:18 -0300
Subject: [PATCH] Modified clone_stag4.sh to be able to clone on systems
 without a hard disk

Signed-off-by: Enris Nogare von Tein <ent13@inf.ufpr.br>
---
 useful/stg312/clone_stage4.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/useful/stg312/clone_stage4.sh b/useful/stg312/clone_stage4.sh
index 66d34e13..72ca5ff5 100755
--- a/useful/stg312/clone_stage4.sh
+++ b/useful/stg312/clone_stage4.sh
@@ -26,9 +26,9 @@ else
 		#echo Escreveu
 		#cat .result.out
 		echo "Sucesso ao clonar."
-		ulimit -v 128
+		cd "$2"
 		if mksquashfs "$4" "$5" -b 1M ; then
-			ulimit -v unlimited
+			cd $caminho
 			mv "$5" "$2"
 			if [ $6 == "1" ]; then
 					rm -rf  "$4"
-- 
GitLab