mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: format command-reshim
This commit is contained in:
parent
0c263ad700
commit
43d6fef000
@ -125,10 +125,10 @@ remove_obsolete_shims() {
|
||||
# comm only takes to files, so we write this data to temp files so we can
|
||||
# pass it to comm.
|
||||
formatted_shims=$(mktemp /tmp/asdf-command-reshim-formatted-shims.XXXXXX)
|
||||
printf "%s\\n" "$shims" > "$formatted_shims"
|
||||
printf "%s\\n" "$shims" >"$formatted_shims"
|
||||
|
||||
formatted_exec_names=$(mktemp /tmp/asdf-command-reshim-formatted-exec-names.XXXXXX)
|
||||
printf "%s\\n" "$exec_names" > "$formatted_exec_names"
|
||||
printf "%s\\n" "$exec_names" >"$formatted_exec_names"
|
||||
|
||||
obsolete_shims=$(comm -23 "$formatted_shims" "$formatted_exec_names")
|
||||
rm -f "$formatted_exec_names" "$formatted_shims"
|
||||
|
Loading…
Reference in New Issue
Block a user