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
No related branches found
No related tags found
1 merge request!1Hedgedoc import
#!/usr/bin/env bash
open_command=open
if [[ $(command -v xdg-oasasdpen) ]];
if [[ $(command -v xdg-open) ]];
then
open_command=xdg-open
fi
......@@ -9,5 +9,5 @@ url_file=$script_directory/hedgedoc_documents_to_visit.url
readarray -t url_array < $url_file
for i in "${url_array[@]}"
do
$($open_command $i)
eval "$open_command $i"
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