Skip to content

Commit

Permalink
[bug] gu (Atom) - check for apm (#19)
Browse files Browse the repository at this point in the history
Fix bug where user previously installed Atom, which created `~/.atom`, but then uninstalled Atom - which leaves `~/.atom` behind.
* The script shows an error that `apm` command doesn't exist, so it should check to make sure the command exists.
* The script should still check for `.atom` given that the script also relies on that folder being present.
  • Loading branch information
JBallin committed Nov 3, 2020
1 parent 66d778a commit a454dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gu
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ else
fi

### ATOM
if [ -d .atom ]; then
if [ -x "$(command -v apm)" ] && [ -d .atom ]; then
u 'apm' 'apm list --installed --no-color'
# TODO: 'font size'/'show panel' change shouldn't trigger update
# always back up dark theme so that a theme change doesn't trigger a gu update
Expand Down

0 comments on commit a454dae

Please sign in to comment.