Write version and hash to .versions file

This commit is contained in:
Akash Manohar J 2014-11-30 12:54:59 +05:30
parent 6c621b38a1
commit 87b548a46d

View File

@ -21,6 +21,12 @@ install_command() {
local install_path=$(get_install_path $package $version)
${source_path}/install $version $install_path "${@:3}"
if [ $? -e 0 ]
then
echo "$version $(basename $install_path)" >> $(dirname $install_path)/.versions
else
exit 1
fi
}