Skip to content

Commit 32fb27c

Browse files
authored
fix(migration): properly reference variable (googleapis#11152)
1 parent 3e7d0b5 commit 32fb27c

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎scripts/split_repo_migration/delete-everything-split-repo.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ else # All other shells: examine $0 for known shell binary filenames.
3131
case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac
3232
fi
3333

34-
(( SOURCED -ne 1 )) || { \
34+
(( ${SOURCED} != 1 )) || { \
3535
echo "Please do not source this script, but execute it directly."
3636
return -10
3737
}

‎scripts/split_repo_migration/multiple-library.post-process.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ else # All other shells: examine $0 for known shell binary filenames.
5050
case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac
5151
fi
5252

53-
(( SOURCED != 1 )) || { \
53+
(( ${SOURCED} != 1 )) || { \
5454
echo "Please do not source this script, but execute it directly."
5555
return -10
5656
}

‎scripts/split_repo_migration/single-library.post-process.api-files.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ else # All other shells: examine $0 for known shell binary filenames.
5353
case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac
5454
fi
5555

56-
(( SOURCED != 1 )) || { \
56+
(( ${SOURCED} != 1 )) || { \
5757
echo "Please do not source this script, but execute it directly."
5858
return -10
5959
}

‎scripts/split_repo_migration/single-library.post-process.common-files.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ else # All other shells: examine $0 for known shell binary filenames.
5555
case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac
5656
fi
5757

58-
(( SOURCED != 1 )) || { \
58+
(( ${SOURCED} != 1 )) || { \
5959
echo "Please do not source this script, but execute it directly."
6060
return -10
6161
}

0 commit comments

Comments
 (0)