Skip to content

Instantly share code, notes, and snippets.

@rsnk96
rsnk96 / build-zsh.sh
Last active July 19, 2018 12:16 — forked from nicoulaj/build-zsh.sh
Build Zsh from sources on Ubuntu
#!/bin/bash
# Build Zsh from sources on Ubuntu.
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file.
execute () {
echo "$ $*"
OUTPUT=$($@ 2>&1)
if [ $? -ne 0 ]; then
echo "$OUTPUT"
echo ""