buildFishPlugin: check if any .fish file exists in source
This commit is contained in:
parent
51d7be2c34
commit
4601687123
@ -45,9 +45,11 @@ stdenv.mkDerivation (drvAttrs // {
|
||||
source="$1"
|
||||
target="$out/share/fish/vendor_$2.d"
|
||||
|
||||
[ -d $source ] || return 0
|
||||
# Check if any .fish file exists in $source
|
||||
[ -n "$(shopt -s nullglob; echo $source/*.fish)" ] || return 0
|
||||
|
||||
mkdir -p $target
|
||||
cp -r $source/*.fish "$target/"
|
||||
cp $source/*.fish "$target/"
|
||||
}
|
||||
|
||||
install_vendor_files completions completions
|
||||
|
Loading…
Reference in New Issue
Block a user