From f231049b60fba59d6fab6bc558787f3b61bfbfe5 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 9 Jan 2022 20:09:03 -0300 Subject: [PATCH] Redirect stderr to /dev/null --- scripts/linkFiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/linkFiles.sh b/scripts/linkFiles.sh index ed617bb..a07ea35 100755 --- a/scripts/linkFiles.sh +++ b/scripts/linkFiles.sh @@ -89,7 +89,7 @@ loopThroughFiles() { fi password=$(displayDialogBox --passwordbox "Enter your password" VALUES 3>&1 1>&2 2>&3) - echo $password | sudo -S bash -c "$(declare -f runDetachedScript); $(declare -f linkFile); runDetachedScript $dialogBox" + echo $password | sudo -S bash -c "$(declare -f runDetachedScript); $(declare -f linkFile); runDetachedScript $dialogBox" 2> /dev/null unset password }