Skip to content
Snippets Groups Projects
Commit b76e73df authored by Andreas Domanowski's avatar Andreas Domanowski
Browse files

Explicitly eval instead of subshell in URL open script

parent 8b5d96a9
Branches
Tags 0.1.6
1 merge request!1Hedgedoc import
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
#!/usr/bin/env bash #!/usr/bin/env bash
open_command=open open_command=open
if [[ $(command -v xdg-oasasdpen) ]]; if [[ $(command -v xdg-open) ]];
then then
open_command=xdg-open open_command=xdg-open
fi fi
...@@ -9,5 +9,5 @@ url_file=$script_directory/hedgedoc_documents_to_visit.url ...@@ -9,5 +9,5 @@ url_file=$script_directory/hedgedoc_documents_to_visit.url
readarray -t url_array < $url_file readarray -t url_array < $url_file
for i in "${url_array[@]}" for i in "${url_array[@]}"
do do
$($open_command $i) eval "$open_command $i"
done done
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment