Bump nushell version and fix find to work with bsd/macOS find
This commit is contained in:
parent
cccc75359a
commit
b7b74bcce8
@ -6,7 +6,7 @@ source "${XDG_DATA_HOME}/buddy-up/includes/utils.sh"
|
||||
|
||||
main () (
|
||||
APP=nushell
|
||||
VERSION=${VERSION:-0.100.0}
|
||||
VERSION=${VERSION:-0.101.0}
|
||||
DEST=${XDG_DATA_HOME}/apps/releases/${APP}
|
||||
URL=https://github.com/nushell/nushell/releases/download/${VERSION}/nu-${VERSION}-$(uname -m)-$(get_os).tar.gz
|
||||
PLUGIN_DIR=${XDG_CONFIG_HOME}/nushell/plugins
|
||||
@ -16,7 +16,7 @@ main () (
|
||||
set_link "${XDG_BIN_HOME}/nu" "${DEST}" nu
|
||||
|
||||
mkdir_if_missing "${PLUGIN_DIR}"
|
||||
find "${DEST}" -type f -executable -exec basename {} \; | grep plugin | while read -r plugin ; do
|
||||
find "${DEST}" -type f -perm +111 -exec basename {} \; | grep plugin | while read -r plugin ; do
|
||||
set_link "${PLUGIN_DIR}/${plugin}" "${DEST}" "${plugin}"
|
||||
done
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user