mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-03 23:43:40 +02:00
updater.sh simplify single profile check
This commit is contained in:
parent
bbbb6f05d2
commit
91501a414a
1 changed files with 1 additions and 3 deletions
|
@ -59,11 +59,9 @@ set_wd () {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
numdirs=("$firefox_dir"/*)
|
numdirs=("$firefox_dir"/*)
|
||||||
numdirs=${#numdirs[@]}
|
if [[ ${#numdirs[@]} == "1" ]]; then
|
||||||
if [[ $numdirs == "1" ]]; then
|
|
||||||
ff_profile=$(ls -d "$firefox_dir"*)
|
ff_profile=$(ls -d "$firefox_dir"*)
|
||||||
else
|
else
|
||||||
echo "wrong"
|
|
||||||
echo -e ${GREEN}"The following profiles were found:\n"${ORANGE}
|
echo -e ${GREEN}"The following profiles were found:\n"${ORANGE}
|
||||||
ls -d "$firefox_dir"*
|
ls -d "$firefox_dir"*
|
||||||
echo -e ${RED}"\nWhich profile would you like to update?"${NC}
|
echo -e ${RED}"\nWhich profile would you like to update?"${NC}
|
||||||
|
|
Loading…
Add table
Reference in a new issue