diff --git a/deps/build.jl b/deps/build.jl new file mode 100644 index 0000000..0f30d9a --- /dev/null +++ b/deps/build.jl @@ -0,0 +1,21 @@ +commands = ["apt-get", "pacman", "yum", "zypper"] +items="" +try + items = readstring((pipeline(`ls /usr/bin`, stderr = DevNull))); +end +if ((contains(items,"\nunzip\n") == false) && (items != "")) + for i in commands + if (contains(items, "\n$(i)\n")) + println("Installing unzip...") + try + if (i=="pacman") + run(pipeline(`sudo $(i) -S unzip`, stderr=DevNull)) + else + run(pipeline(`sudo $(i) install unzip`, stderr=DevNull)) + end + catch + println("Unable to install unzip. Please install it manually.") + end + end + end +end