lib/scripts/getfunctions
changeset 73580 a96564139fa7
parent 73579 8ddf6728ad80
child 73773 ac7f41b66e1b
--- a/lib/scripts/getfunctions	Wed Apr 14 14:28:30 2021 +0200
+++ b/lib/scripts/getfunctions	Wed Apr 14 14:36:13 2021 +0200
@@ -21,7 +21,13 @@
 export -f platform_path standard_path
 
 #GNU tar (notably on macOS)
-function tar() { "${ISABELLE_TAR:-false}" "$@"; }
+function tar() {
+  if [ -f "$ISABELLE_TAR" ]; then
+    "$ISABELLE_TAR" "$@"
+  else
+    "$(type -P tar)" "$@"
+  fi
+}
 export -f tar
 
 #OCaml management via OPAM