diff options
author | kylo252 <[email protected]> | 2022-07-31 14:28:43 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-07-31 14:28:43 +0200 |
commit | 6fbefdacd35f03b8146490613c54e7865d06a77f (patch) | |
tree | 70e378c86c411b4c959e7f04851263fc96ad752e /utils/installer/install-neovim-from-release | |
parent | b04aefbb79670b115f4f363906d6d294b3d0a2a3 (diff) | |
parent | dec21bbab6cf9102e236806e20273d08f32f8716 (diff) |
Merge branch 'rolling'
Diffstat (limited to 'utils/installer/install-neovim-from-release')
-rwxr-xr-x | utils/installer/install-neovim-from-release | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/installer/install-neovim-from-release b/utils/installer/install-neovim-from-release index 08f27149..076ac46d 100755 --- a/utils/installer/install-neovim-from-release +++ b/utils/installer/install-neovim-from-release @@ -72,6 +72,10 @@ function install_neovim() { pushd "$DOWNLOAD_DIR" tar -xzf "$DOWNLOAD_DIR/$ARCHIVE_NAME.tar.gz" popd + if [ ! -d "$DOWNLOAD_DIR/$RELEASE_NAME" ]; then + # fallback to archive name + RELEASE_NAME="$ARCHIVE_NAME" + fi # https://dev.to/ackshaey/macos-vs-linux-the-cp-command-will-trip-you-up-2p00 cp -r "$DOWNLOAD_DIR/$RELEASE_NAME/." "$LV_INSTALL_PREFIX" echo "Installation complete!" |