Skip to content

Commit

Permalink
Closes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeansen committed Oct 4, 2019
1 parent 5703e44 commit 702770d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bcrm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1676,8 +1676,7 @@ Main() { #{{{
pid=$$
echo $pid 1>&200
PKGS=(awk lvm rsync tar flock bc blockdev fdisk sfdisk)
PKGS=()
while true; do
case "$1" in
'-h' | '--help')
Expand Down Expand Up @@ -1797,9 +1796,14 @@ Main() { #{{{
esac
done
grep -q 'LVM2_member' < <(lsblk -o FSTYPE "$SRC") && PKGS+=(lvm)
PKGS+=(awk rsync tar flock bc blockdev fdisk sfdisk locale-gen)
local packages=()
#Inform about ALL missing but necessary tools.
for c in ${PKGS[@]}; do
echo "$c" >> /tmp/f
hash "$c" 2>/dev/null || {
case "$c" in
lvm)
Expand Down

0 comments on commit 702770d

Please sign in to comment.