Add check for firefox directory itself

This commit is contained in:
RealStickman 2022-06-05 20:29:00 +02:00
parent ac40fc8327
commit 0a9e69c41d

View File

@ -204,6 +204,8 @@ EOF
cp -r ~/config/.config/ ~/
cp -r ~/config/.local/ ~/
#cp -r ~/config/Dokumente ~/
# NOTE find fails if the top level directory is not found
if [[ -d ~/.mozilla/firefox ]]; then
# NOTE check if firefox default-release directory exists. 1 is good, 0 is bad
firefoxdir=$(find ~/.mozilla/firefox/ -name \*.default-release | wc -l)
if [[ $firefoxdir -eq 1 ]]; then
@ -211,6 +213,9 @@ if [[ $firefoxdir -eq 1 ]]; then
else
echo "Please launch firefox and then update the config again"
fi
else
echo "Please launch firefox and then update the config again"
fi
cp -r ~/config/.easystroke ~/
cp -r ~/config/.elvish ~/
cp -r ~/config/.doom.d ~/