diff options
author | kylo252 <[email protected]> | 2022-06-26 13:53:44 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-26 13:53:44 +0200 |
commit | 12f8798bb05038a6269c6e50fe20c53ac47f75e3 (patch) | |
tree | e23443758b9e119f77a4ea68bd5a398549bd4126 /utils/installer/install-neovim-from-release | |
parent | 9b528ecf57c58ab282d89f31b4e963662b1ace73 (diff) |
fix(installer): always use check shallow clones (#2763)
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!" |