mirror of
https://github.com/IlanCosman/tide.git
synced 2024-10-26 18:51:05 +03:00
Minor speedup to pulumi item
This commit is contained in:
parent
ff88ca7182
commit
4943403c69
@ -1,9 +1,9 @@
|
||||
function _tide_item_pulumi
|
||||
if path filter $_tide_parent_dirs/Pulumi.yaml | read -l yaml_path
|
||||
if command -q sha1sum
|
||||
echo -n "$yaml_path" | sha1sum | string sub -e40 | read -f path_hash
|
||||
echo -n "$yaml_path" | sha1sum | string match -qr "(?<path_hash>.{40})"
|
||||
else if command -q shasum
|
||||
echo -n "$yaml_path" | shasum | string sub -e40 | read -f path_hash
|
||||
echo -n "$yaml_path" | shasum | string match -qr "(?<path_hash>.{40})"
|
||||
end
|
||||
|
||||
if test -n "$path_hash"
|
||||
|
Loading…
Reference in New Issue
Block a user