feat: aikup install completions scripts linux only
This commit is contained in:
parent
063f3d0835
commit
0b2786e335
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -x
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
@ -91,6 +92,8 @@ main() {
|
||||||
err "failed to download aiken: version not found or network error"
|
err "failed to download aiken: version not found or network error"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for bin in "${BINS[@]}"; do
|
for bin in "${BINS[@]}"; do
|
||||||
bin_path="$AIKEN_BIN_DIR/$bin"
|
bin_path="$AIKEN_BIN_DIR/$bin"
|
||||||
|
|
||||||
|
@ -111,6 +114,12 @@ EOF
|
||||||
fi
|
fi
|
||||||
done
|
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"
|
say "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue