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

Add shell script for opening browser tabs

parent 4166a64e
Branches
Tags
1 merge request!1Hedgedoc import
#!/bin/bash
script_directory=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
url_file=$script_directory/../hedgedoc_documents_to_visit.url
echo "Please specify which browser should be used to access the newly created documents"
echo "This browser needs to have an active and logged-in HedgeDoc session."
echo "ATTENTION: your input will be evaluated as part of a shell script"
echo "ATTENTION: your input string needs to be present on your path (e.g. firefox or google-chrome)"
echo "Specify the browser:"
read browser
readarray -t url_array < $url_file
echo "${url_array[@]}" | xargs -n50 $browser
\ 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