From f1bb75196c361c09152dce84e310a3ea967cdd1f Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 27 Jun 2024 18:43:43 +0200 Subject: bash: Move parts to posix-shell/programs.sh --- posix-shell/programs.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 posix-shell/programs.sh (limited to 'posix-shell/programs.sh') diff --git a/posix-shell/programs.sh b/posix-shell/programs.sh new file mode 100644 index 0000000..06af8e9 --- /dev/null +++ b/posix-shell/programs.sh @@ -0,0 +1,38 @@ +#!/bin/sh + + +PROGRAMS=' +aerc +bemenu-run +brightnessctl +dunst +foot +gammastep +grim +htop +khard +lf +mpv +nvim +pactl +rifle +slurp +swappy +sway +swaylock +vdirsyncer +' + + +# check for missing programs +echo "$PROGRAMS" | while read -r program +do + if [ "$program" = '' ] + then + continue + fi + if ! command -v "$program" > /dev/null 2>&1 + then + echo "Program is missing: '$program'" + fi +done -- cgit v1.2.3-70-g09d2