diff options
author | qarkai <qarkai@gmail.com> | 2017-02-03 22:05:44 +0300 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2017-02-04 08:46:14 +0000 |
commit | e6a9dc22a4e58b565894f8cdb6a19755af7b14de (patch) | |
tree | dfe64e3ad007fdd9c8f46e8a9f6acdd1d08517ae /desktop/scripts/swriter.sh | |
parent | 1bdef25291dea612305fa2cb8dd806466aa97773 (diff) |
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>
Diffstat (limited to 'desktop/scripts/swriter.sh')
-rwxr-xr-x | desktop/scripts/swriter.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/scripts/swriter.sh b/desktop/scripts/swriter.sh index 3fa48c0d3eba..19a7c9ed4191 100755 --- a/desktop/scripts/swriter.sh +++ b/desktop/scripts/swriter.sh @@ -1,4 +1,4 @@ #!/bin/sh -cmd=`dirname "$0"`/soffice +cmd=$(dirname "$0")/soffice exec "$cmd" --writer "$@" |