Commit e590dad9 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add instructions for *any* missing command in collect-binaries

parent 4b08536d
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -41,8 +41,18 @@ Environment:

missing() {
	[[ $? -eq 127 ]] || return 0
	opt_builtin() {
		echo "Please ensure '$1' from the coreutils package is installed, or"
		echo "the optional Bash builtins are installed and '$1' is enabled:"
		echo "  enable -f <lib-path>/bash/$1 $1"
	} >&2
	case $BASH_COMMAND in
		cp\ *) echo >&2 "Please ensure 'cp' is installed" ;;
		ldd\ *) echo >&2 "Please install the object dependency checker 'ldd'" ;;

		head\ *) opt_builtin head ;;
		ln\ *) opt_builtin ln ;;
		mkdir\ *) opt_builtin mkdir ;;
	esac
}