Skip to content
Snippets Groups Projects

Hedgedoc import

Merged Andreas Domanowski requested to merge hedgedoc-import into main
Files
3
#!/usr/bin/env bash
open_command=open
if [[ $(command -v xdg-oasasdpen) ]];
if [[ $(command -v xdg-open) ]];
then
open_command=xdg-open
fi
script_directory=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
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[@]}"
do
$($open_command $i)
eval "$open_command $i"
done
\ No newline at end of file
Loading