From 6d55777429efe8b49bed144f6d4234a7aaa74dfa Mon Sep 17 00:00:00 2001 From: mapperr Date: Wed, 5 Aug 2020 23:25:46 +0200 Subject: [PATCH] Suppress hostname command not found error --- dfl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dfl b/dfl index af5d0da..09404c6 100755 --- a/dfl +++ b/dfl @@ -37,7 +37,7 @@ untrack_file_abs="$dfl_user_dir_abs/.untrack" update_scriptpath_abs="$dfl_user_dir_abs/update_dfl.sh" backup_suffix="-dflbak" -environment_hostname=`hostname` +environment_hostname=`hash hostname 2>/dev/null && hostname` environment_override="$DFL_OVERRIDE" logd() { -- 2.45.2