From 87f1be1e9e7fc4ffd8e4a97a1c9fc9d26669fa63 Mon Sep 17 00:00:00 2001 From: Victor Chudnovsky Date: Mon, 8 May 2023 17:10:40 -0700 Subject: [PATCH] fix(migration): properly reference variable --- scripts/split_repo_migration/delete-everything-split-repo.sh | 2 +- scripts/split_repo_migration/multiple-library.post-process.sh | 2 +- .../single-library.post-process.api-files.sh | 2 +- .../single-library.post-process.common-files.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/split_repo_migration/delete-everything-split-repo.sh b/scripts/split_repo_migration/delete-everything-split-repo.sh index 23ba75164e96..92706f92d2ad 100755 --- a/scripts/split_repo_migration/delete-everything-split-repo.sh +++ b/scripts/split_repo_migration/delete-everything-split-repo.sh @@ -31,7 +31,7 @@ else # All other shells: examine $0 for known shell binary filenames. case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac fi -(( SOURCED -ne 1 )) || { \ +(( ${SOURCED} != 1 )) || { \ echo "Please do not source this script, but execute it directly." return -10 } diff --git a/scripts/split_repo_migration/multiple-library.post-process.sh b/scripts/split_repo_migration/multiple-library.post-process.sh index fb187afa92ff..ec8b5e652a8e 100755 --- a/scripts/split_repo_migration/multiple-library.post-process.sh +++ b/scripts/split_repo_migration/multiple-library.post-process.sh @@ -50,7 +50,7 @@ else # All other shells: examine $0 for known shell binary filenames. case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac fi -(( SOURCED != 1 )) || { \ +(( ${SOURCED} != 1 )) || { \ echo "Please do not source this script, but execute it directly." return -10 } diff --git a/scripts/split_repo_migration/single-library.post-process.api-files.sh b/scripts/split_repo_migration/single-library.post-process.api-files.sh index 6a1dabfb25ed..9686615d13cc 100755 --- a/scripts/split_repo_migration/single-library.post-process.api-files.sh +++ b/scripts/split_repo_migration/single-library.post-process.api-files.sh @@ -53,7 +53,7 @@ else # All other shells: examine $0 for known shell binary filenames. case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac fi -(( SOURCED != 1 )) || { \ +(( ${SOURCED} != 1 )) || { \ echo "Please do not source this script, but execute it directly." return -10 } diff --git a/scripts/split_repo_migration/single-library.post-process.common-files.sh b/scripts/split_repo_migration/single-library.post-process.common-files.sh index ffddfc7d2c45..f886909f0c4a 100755 --- a/scripts/split_repo_migration/single-library.post-process.common-files.sh +++ b/scripts/split_repo_migration/single-library.post-process.common-files.sh @@ -55,7 +55,7 @@ else # All other shells: examine $0 for known shell binary filenames. case ${0##*/} in sh|-sh|dash|-dash) SOURCED=1;; esac fi -(( SOURCED != 1 )) || { \ +(( ${SOURCED} != 1 )) || { \ echo "Please do not source this script, but execute it directly." return -10 }