]> gitweb.fluxo.info Git - stowpkg.git/commitdiff
Requires make
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Mar 2018 16:41:59 +0000 (13:41 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 23 Mar 2018 16:41:59 +0000 (13:41 -0300)
stowpkg

diff --git a/stowpkg b/stowpkg
index da22e89b7bfdcc34238f8d52759f5470cebc6dd4..bb2a14ce39cac74a030d3a51c7696eeeb4c21454 100755 (executable)
--- a/stowpkg
+++ b/stowpkg
@@ -42,6 +42,12 @@ __stowpkg_initialize () {
     exit 1
   fi
 
+  # Check for make
+  if ! which make > /dev/null 2>&1; then
+    echo "$BASENAME: please install make first"
+    exit 1
+  fi
+
   # Sudo config
   if [ "`whoami`" != 'root' ]; then
     SUDO="sudo"