Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Speed up Atom package installation script #318

Merged
merged 1 commit into from
Apr 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions atom.symlink/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ if test "$(which apm)"; then
wakatime
"
for module in $modules; do
apm list | grep -q "$module" || apm install "$module"
if [[ ! -d "$HOME/.atom/packages/$module" ]]; then
apm install "$module"
fi
done

modules="
metrics
exception-reporting
"
for module in $modules; do
apm list | grep -q "$module" || apm remove "$module"
if [[ -d "$HOME/.atom/packages/$module" ]]; then
apm remove "$module"
fi
done
fi