From d517b083433baa9617b39fcf0c8b297722ec0919 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 7 Apr 2024 10:31:26 +0200 Subject: [PATCH] Update linkFiles.sh --- scripts/linkFiles.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/linkFiles.sh b/scripts/linkFiles.sh index 2473224..9d636fa 100755 --- a/scripts/linkFiles.sh +++ b/scripts/linkFiles.sh @@ -98,13 +98,13 @@ loopThroughFiles() { [ "${files[0]}" = '' ] && exit files=("${files[@]//$'\n'/ }") fi - fi - password=$(displayDialogBox --passwordbox "\nEnter your (sudo) password." VALUES 3>&1 1>&2 2>&3) - echo "$password" | sudo -S bash -c "" > /dev/null 2>&1 - cmd="$(declare -f runDetachedScript); $(declare -f linkFile); runDetachedScript getDialogBox ${files[*]}" - echo "$password" | sudo -S bash -c "$cmd" - unset password + password=$(displayDialogBox --passwordbox "\nEnter your (sudo) password." VALUES 3>&1 1>&2 2>&3) + echo "$password" | sudo -S bash -c "" > /dev/null 2>&1 + cmd="$(declare -f runDetachedScript); $(declare -f linkFile); runDetachedScript getDialogBox ${files[*]}" + echo "$password" | sudo -S bash -c "$cmd" + unset password + fi } runDetachedScript() {