[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 2c95b12 08/12: Resolve all shellcheck "SC2046
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 2c95b12 08/12: Resolve all shellcheck "SC2046" warnings |
Date: |
Sun, 12 May 2019 22:25:17 -0400 (EDT) |
branch: master
commit 2c95b12de200dcc679cc404fb6edd16a02025d60
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Resolve all shellcheck "SC2046" warnings
---
check_git_setup.sh | 2 +-
install_msw.sh | 2 +-
test_schemata.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/check_git_setup.sh b/check_git_setup.sh
index 08117fd..a61e949 100755
--- a/check_git_setup.sh
+++ b/check_git_setup.sh
@@ -24,7 +24,7 @@
# Navigate to the directory where this script resides, and make sure
# it's a git "toplevel" directory.
-cd $(dirname $(readlink -f "$0")) || printf 'Cannot cd\n'
+cd "$(dirname "$(readlink -f "$0")")" || printf 'Cannot cd\n'
toplevel=$(git rev-parse --show-toplevel)
printf '"%s" is current directory\n' "$PWD"
printf '"%s" is git toplevel directory\n' "$toplevel"
diff --git a/install_msw.sh b/install_msw.sh
index 99b27d3..02d9cd5 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -310,7 +310,7 @@ fi
stamp1=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo "Finished: $stamp1"
-seconds=$(expr $(date '+%s' -d "$stamp1") - $(date '+%s' -d "$stamp0"))
+seconds=$(expr "$(date '+%s' -d "$stamp1")" - "$(date '+%s' -d "$stamp0")")
elapsed=$(date -u -d @"$seconds" +'%H:%M:%S')
echo "Elapsed: $elapsed"
diff --git a/test_schemata.sh b/test_schemata.sh
index bf71e7d..e9bf8bb 100755
--- a/test_schemata.sh
+++ b/test_schemata.sh
@@ -25,7 +25,7 @@ echo " Test schemata..."
# Directory where this script resides.
-srcdir=$(dirname $(readlink --canonicalize "$0"))
+srcdir=$(dirname "$(readlink --canonicalize "$0")")
# Directory where 'jing.jar' and 'trang.jar' reside, along with their
# support files--extracted from:
- [lmi-commits] [lmi] master updated (fe191f3 -> 46d19dd), Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master d3d3147 04/12: Use MinGW directory only as a variable, never as a literal, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master f9b8091 09/12: Resolve all shellcheck "SC2003" warnings, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master 2c95b12 08/12: Resolve all shellcheck "SC2046" warnings,
Greg Chicares <=
- [lmi-commits] [lmi] master 502a7d2 05/12: Install MinGW gcc after LMI_* environment variables have been set, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master b53fd90 07/12: Suppress misleading shellcheck diagnostics, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master 66ae5a6 03/12: Clarify that obsolete makefiles needn't be maintained, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master d5123bd 02/12: Replace some dead gmane URLs, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master e91fdeb 10/12: Resolve all shellcheck "SC1117" warnings, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master 0c5f914 06/12: Install gcc in an architecture-dependent directory, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master 46d19dd 12/12: Resolve all shellcheck "SC2043" warnings, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master ca39972 01/12: Remove outdated cross-compiling instructions, Greg Chicares, 2019/05/12
- [lmi-commits] [lmi] master 325dc9f 11/12: Resolve all shellcheck "SC2129" warnings, Greg Chicares, 2019/05/12