diff --git a/020_zsh-zunit_checkinstall.sh b/020_zsh-zunit_checkinstall.sh index 4c2e52b..cd92aba 100644 --- a/020_zsh-zunit_checkinstall.sh +++ b/020_zsh-zunit_checkinstall.sh @@ -33,27 +33,27 @@ BASE_TMP_DIR=~/tmptmp/checkinstall_tmp #------------------------------------------------------------------------------- ## Create and populate the install scripts and documentation for checkinstall -cat >${BUILD_DIR}/description-pak <${BUILD_DIR}/preinstall-pak <${BUILD_DIR}/postinstall-pak <${BUILD_DIR}/preremove-pak <${BUILD_DIR}/postremove-pak <${BUILD_DIR}/doc-pak/README <${BUILD_DIR}/checkinstall_it.sh <${BUILD_DIR}/install.sh < /usr/local/bin/revolver +INSTALL_DIR=/usr/local/bin +curl -L https://raw.githubusercontent.com/molovo/revolver/master/revolver > ${INSTALL_DIR}/revolver + +chmod +x ${INSTALL_DIR}/revolver # Build ZUnit from source -git clone https://github.com/zunit-zsh/zunit $BUILD_DIR/zunit -cd $BUILD_DIR/zunit +git clone https://github.com/zunit-zsh/zunit ${BUILD_DIR}/zunit +cd ${BUILD_DIR}/zunit ./build.zsh # Copy zunit into $path -cp zunit /usr/local/bin +cp zunit ${INSTALL_DIR} +chmod +x ${INSTALL_DIR}/zunit # Optional, copy ZUnit ZSH completion into $fpath -cp zunit.zsh-completion "${fpath[1]}/_zunit" +cp zunit.zsh-completion "${fpath[1]}/_zu FOE bash ${BUILD_DIR}/checkinstall_it.sh