diff options
Diffstat (limited to 'posix-shell/programs.sh')
-rw-r--r-- | posix-shell/programs.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/posix-shell/programs.sh b/posix-shell/programs.sh index 085d878..1a719a3 100644 --- a/posix-shell/programs.sh +++ b/posix-shell/programs.sh @@ -25,15 +25,19 @@ vdirsyncer check_programs() { - echo "$PROGRAMS" | while read -r program + echo "$PROGRAMS" | sort | while read -r program do if [ "$program" = '' ] then continue fi - if ! command -v "$program" > /dev/null 2>&1 + local state='' + if command -v "$program" > /dev/null 2>&1 then - echo "Program is missing: '$program'" + state='x' + else + state=' ' fi + echo "[${state}] $program" done } |