diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-09-11 12:57:39 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-09-11 12:57:39 +0200 |
commit | abafaf9720c2d86038153def37e4f57d793c431b (patch) | |
tree | 973216f7cd2f607dac541c66b216da080dd53c12 /bin/menuscripts | |
parent | 2728c8d6be1c97fee47234304a5321d8de70892f (diff) |
[mcurs] be firefox specific
Diffstat (limited to 'bin/menuscripts')
-rwxr-xr-x | bin/menuscripts/mcurs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/menuscripts/mcurs b/bin/menuscripts/mcurs index 4349e0b..3714c41 100755 --- a/bin/menuscripts/mcurs +++ b/bin/menuscripts/mcurs @@ -1,11 +1,8 @@ #!/bin/sh -# requirements -which "$BROWSER" > /dev/null || exit 1 - -choice="$(find "${1:-$HOME/docs/school}" | - grep -i "cursus/index.html" 2> /dev/null | +choice="$(find "${1:-"$HOME"/docs/school}" \ + -type f -path "*/?ursus/index.html" 2> /dev/null | sed "s;$HOME;~;" | commander -x -d -c)" -[ "$choice" ] && exit 1 +[ "$choice" ] || exit 1 -$BROWSER "$choice" +firefox --new-window "$choice" |