Add check for firefox directory itself
This commit is contained in:
parent
ac40fc8327
commit
0a9e69c41d
@ -204,10 +204,15 @@ EOF
|
|||||||
cp -r ~/config/.config/ ~/
|
cp -r ~/config/.config/ ~/
|
||||||
cp -r ~/config/.local/ ~/
|
cp -r ~/config/.local/ ~/
|
||||||
#cp -r ~/config/Dokumente ~/
|
#cp -r ~/config/Dokumente ~/
|
||||||
# NOTE check if firefox default-release directory exists. 1 is good, 0 is bad
|
# NOTE find fails if the top level directory is not found
|
||||||
firefoxdir=$(find ~/.mozilla/firefox/ -name \*.default-release | wc -l)
|
if [[ -d ~/.mozilla/firefox ]]; then
|
||||||
if [[ $firefoxdir -eq 1 ]]; then
|
# NOTE check if firefox default-release directory exists. 1 is good, 0 is bad
|
||||||
cp -r ~/config/.mozilla/firefox/default-release/* ~/.mozilla/firefox/*.default-release/
|
firefoxdir=$(find ~/.mozilla/firefox/ -name \*.default-release | wc -l)
|
||||||
|
if [[ $firefoxdir -eq 1 ]]; then
|
||||||
|
cp -r ~/config/.mozilla/firefox/default-release/* ~/.mozilla/firefox/*.default-release/
|
||||||
|
else
|
||||||
|
echo "Please launch firefox and then update the config again"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Please launch firefox and then update the config again"
|
echo "Please launch firefox and then update the config again"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user