feat: aikup install completions scripts linux only

This commit is contained in:
Christopher Valerio
2024-03-29 15:55:31 -06:00
parent 063f3d0835
commit 0b2786e335

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -x
set -e
set -o pipefail
@@ -91,6 +92,8 @@ main() {
err "failed to download aiken: version not found or network error"
}
for bin in "${BINS[@]}"; do
bin_path="$AIKEN_BIN_DIR/$bin"
@@ -111,6 +114,12 @@ EOF
fi
done
if [ "${PLATFORM}" = "linux" ]; then
"$AIKEN_BIN_DIR/$bin" completion "$(basename ${SHELL})" --install || say "Aiken version ${AIKUP_VERSION} doesn't support installing completions"
fi
say "done"
}