From 600531c516b3113f5d4520af5f71f430ae594cf8 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 31 Dec 2021 16:54:06 -0300 Subject: [PATCH] Pass dialogBox as an argument of runDetachedScript() --- scripts/linkFiles.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/linkFiles.sh b/scripts/linkFiles.sh index a664d7b..c89fb87 100755 --- a/scripts/linkFiles.sh +++ b/scripts/linkFiles.sh @@ -88,11 +88,12 @@ loopThroughFiles() { displayDialogBox --yesno "There are 'other' files, would you like to install them?\n\n${files}" || return fi - sudo bash -c "$(declare -f runDetachedScript); $(declare -f linkFile); "runDetachedScript"" + sudo bash -c "$(declare -f runDetachedScript); $(declare -f linkFile); "runDetachedScript" "$dialogBox"" } runDetachedScript() { source scripts/common.sh + setDialogBox "$1" DOTFILES_OTHER=$(pwd -P)/dotfiles/other