From e6a9dc22a4e58b565894f8cdb6a19755af7b14de Mon Sep 17 00:00:00 2001 From: qarkai Date: Fri, 3 Feb 2017 22:05:44 +0300 Subject: 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 Reviewed-by: jan iversen --- desktop/scripts/scalc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/scripts/scalc.sh') diff --git a/desktop/scripts/scalc.sh b/desktop/scripts/scalc.sh index c9c3cde39e49..ff3d597951a4 100755 --- a/desktop/scripts/scalc.sh +++ b/desktop/scripts/scalc.sh @@ -1,4 +1,4 @@ #!/bin/sh -cmd=`dirname "$0"`/soffice +cmd=$(dirname "$0")/soffice exec "$cmd" --calc "$@" -- cgit