Update linkFiles.sh
This commit is contained in:
parent
d9cc1d4b13
commit
d517b08343
|
@ -98,13 +98,13 @@ loopThroughFiles() {
|
||||||
[ "${files[0]}" = '' ] && exit
|
[ "${files[0]}" = '' ] && exit
|
||||||
files=("${files[@]//$'\n'/ }")
|
files=("${files[@]//$'\n'/ }")
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
password=$(displayDialogBox --passwordbox "\nEnter your (sudo) password." VALUES 3>&1 1>&2 2>&3)
|
password=$(displayDialogBox --passwordbox "\nEnter your (sudo) password." VALUES 3>&1 1>&2 2>&3)
|
||||||
echo "$password" | sudo -S bash -c "" > /dev/null 2>&1
|
echo "$password" | sudo -S bash -c "" > /dev/null 2>&1
|
||||||
cmd="$(declare -f runDetachedScript); $(declare -f linkFile); runDetachedScript getDialogBox ${files[*]}"
|
cmd="$(declare -f runDetachedScript); $(declare -f linkFile); runDetachedScript getDialogBox ${files[*]}"
|
||||||
echo "$password" | sudo -S bash -c "$cmd"
|
echo "$password" | sudo -S bash -c "$cmd"
|
||||||
unset password
|
unset password
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
runDetachedScript() {
|
runDetachedScript() {
|
||||||
|
|
Loading…
Reference in New Issue