Skip to content
Snippets Groups Projects
Commit 4cc94e1f authored by Jens Nolte's avatar Jens Nolte
Browse files

Fix install script by switching to zsh

parent e9bbf9b3
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
#!/usr/bin/env zsh
set -e
set -u
......@@ -12,7 +12,7 @@ readonly executable_path=$local_bin/$executable_name
stack install
echo >&2
if [ -n "${LOCAL_ZSH_COMPLETION_PATH+set}" -a -d "$LOCAL_ZSH_COMPLETION_PATH" ]
if [[ -n "${LOCAL_ZSH_COMPLETION_PATH+set}" && -d "$LOCAL_ZSH_COMPLETION_PATH" ]]
then
ZSH_COMPLETION_SCRIPT_PATH=$LOCAL_ZSH_COMPLETION_PATH/_$executable_name
$executable_path --zsh-completion-script $executable_path > $ZSH_COMPLETION_SCRIPT_PATH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment