Commit d4dfe9c3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add cd_to_temp_dir function

parent bfe8ff38
......@@ -17,6 +17,12 @@ check_url_is_accessible()
eget --check "$1"
}
cd_to_temp_dir()
{
PKGDIR=$(mktemp -d)
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
}
is_supported_arch()
......
Markdown is supported
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