Commit 06b2f7e6 authored by tuncer's avatar tuncer
Browse files use subshell to cd and install pkg

This catches if cd fails and also avoid the need to cd .. back.
parent 4a352d86
......@@ -403,10 +403,8 @@ do_pkg () {
echo "Downloading ${PKG}-${VER}..."
fetch_pkg ${PKG} ${VER}
unpack_pkg ${PKG} ${VER}
cd "${PKG}-${VER}"
install_pkg ${PKG} ${VER}
cd ..
unpack_pkg "${PKG}" "${VER}"
(cd "${PKG}-${VER}" && install_pkg ${PKG} ${VER})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment