From 89258ba91d5d8720c56466501c2fb23123deef2f Mon Sep 17 00:00:00 2001
From: Stanislas Lange <angristan@pm.me>
Date: Sun, 26 Apr 2020 12:54:03 +0200
Subject: [PATCH] Mitigate Debian packaging issue

bc is missing as dependency: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956869

fix #70
---
 wireguard-install.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wireguard-install.sh b/wireguard-install.sh
index c8a0515..031dc33 100644
--- a/wireguard-install.sh
+++ b/wireguard-install.sh
@@ -142,6 +142,7 @@ elif [[ "$OS" = 'debian' ]]; then
     apt update
     apt-get install -y "linux-headers-$(uname -r)"
     apt-get install -y wireguard iptables resolvconf qrencode
+    apt-get install -y bc # mitigate https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956869
 elif [[ "$OS" = 'fedora' ]]; then
     if [[ "$VERSION_ID" -lt 32 ]]; then
         dnf install -y dnf-plugins-core