diff --git a/cook.sh b/cook.sh
index ece2d10423f6899b21bdba04d4f1dfd1a002d3cf..a4f1b0bff558f5495a20716a6c26c82ad2ffb00b 100755
--- a/cook.sh
+++ b/cook.sh
@@ -95,19 +95,19 @@ function op {
             fi
             ;;
         prepare)
-            rm -rf sysroot
-            mkdir sysroot
+	    rm -rf sysroot
+	    mkdir sysroot
 
             if [ ${#BUILD_DEPENDS} -gt 0 ]
             then
-              for i in "${BUILD_DEPENDS[@]}"
-              do
-                pushd "$ROOT"
-                  ./repo.sh "$i"
-                popd
+                pushd $ROOT
+	            ./repo.sh "${BUILD_DEPENDS[@]}"
+	        popd
 
-                CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
-              done
+                for i in "${BUILD_DEPENDS[@]}"
+		do
+                    CC=cc cargo run --release --manifest-path "$ROOT/pkgutils/Cargo.toml" --bin pkg -- --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
+                done
             fi
 
             rm -rf build