office-gobmx/desktop/scripts/swriter.sh
qarkai e6a9dc22a4 tdf#105204 fix shellcheck warnings in desktop/scripts
Use $(..) instead of `..`,
use && and || instead of -a and -o,
double quote to prevent word splitting,
handle cd failure.

Change-Id: I860891323a81ac4a46c868ab028df1e1f837c115
Reviewed-on: https://gerrit.libreoffice.org/33897
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-04 08:46:14 +00:00

4 lines
65 B
Bash
Executable file

#!/bin/sh
cmd=$(dirname "$0")/soffice
exec "$cmd" --writer "$@"