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

Commit

Permalink
feat(project): provide a useful error as a list item when node.js is …
Browse files Browse the repository at this point in the history
…not installed
  • Loading branch information
moranje committed Jan 31, 2020
1 parent 31f14c9 commit e039157
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 168 deletions.
26 changes: 26 additions & 0 deletions dist/workflow/check-node.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

###############################################################################
# Author: M. Oranje
# Licence: MIT
###############################################################################

export PATH="$PATH:$node_path:/usr/local/bin:/usr/bin"

if which node > /dev/null; then
:
else
cat << EOB
{
"items": [
{
"title": "You don't have Node.js installed",
"subtitle": "You need it for this workflow to work. Read the docs for more information.",
"quicklookurl": "https://github.com/moranje/alfred-workflow-todoist#installation",
"valid": false
},
],
}
EOB
exit 0
fi
Loading

0 comments on commit e039157

Please sign in to comment.