Skip to content

Commit 3330352

Browse files
committed
Merge pull request #670 from practicalswift/additional-bash-fixes
Cleanups of various bash scripts
2 parents 054874e + 466952a commit 3330352

File tree

4 files changed

+6
-169
lines changed

4 files changed

+6
-169
lines changed

utils/install-package-helper.sh

Lines changed: 0 additions & 34 deletions
This file was deleted.

utils/install-test-script.sh

Lines changed: 0 additions & 129 deletions
This file was deleted.

utils/swift-stdlib-tool-substitute

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ argv=("$@")
3535
have_source_libraries=NO
3636
platform=""
3737
set -- "$@"
38-
while [[ $# > 0 ]]; do
38+
while [[ $# -gt 0 ]]; do
3939
case "$1" in
4040
--source-libraries)
4141
shift
42-
if [[ $# > 0 ]]; then
42+
if [[ $# -gt 0 ]]; then
4343
have_source_libraries=YES
4444
fi
4545
;;
4646
--platform)
4747
shift
48-
if [[ $# > 0 ]]; then
48+
if [[ $# -gt 0 ]]; then
4949
platform="$1"
5050
fi
5151
;;
@@ -63,8 +63,8 @@ elif [[ "$platform" = "" ]]; then
6363
exit 1
6464
else
6565
# Construct a new --source-libraries argument.
66-
bindir=`dirname "$self_path"`
67-
usrdir=`dirname "$bindir"`
66+
bindir=$(dirname "$self_path")
67+
usrdir=$(dirname "$bindir")
6868
source_libraries="$usrdir/lib/swift/$platform"
6969
if [ ! -d "$source_libraries" -o ! -x "$source_libraries" ]; then
7070
echo "$self_path: error: platform path inaccessible: $source_libraries"

validation-test/SIL/Inputs/gen_parse_stdlib_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
process_count=17
4-
process_id_max=$(($process_count - 1))
4+
process_id_max=$((process_count - 1))
55

66
for id in $(seq 0 $process_id_max); do
77

0 commit comments

Comments
 (0)