install: resolve bundle if existent, otherwise create file

This commit is contained in:
Derek Stavis 2015-08-29 19:26:46 -03:00
parent 0a195572a1
commit 102771b73c

View File

@ -100,7 +100,10 @@ omf_install() {
echo "Writing Oh My Fish configuration → ${OMF_CONFIG}"
mkdir -p "${OMF_CONFIG}"
touch "${OMF_CONFIG}/theme"
touch "${OMF_CONFIG}/bundle"
test -f "${OMF_CONFIG}/revision" || echo ${git_rev} > "${OMF_CONFIG}/revision"
else
fish -c "omf install"
fi
}