Merge branch 'master' into patch-1

This commit is contained in:
Government 2023-11-16 08:27:33 +07:00 committed by GitHub
commit f3eb485204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 24 deletions

View File

@ -66,8 +66,8 @@ AWSCLI_ZIP_FILE="awscliv2.zip"
#----------------------------------------------------------- #-----------------------------------------------------------
# Parameters for configure(set environments) # Parameters for configure(set environments)
#----------------------------------------------------------- #-----------------------------------------------------------
# shellcheck disable=SC2089 CXXFLAGS="-O -DS3FS_PTHREAD_ERRORCHECK=1"
CONFIGURE_OPTIONS="CXXFLAGS='-O -std=c++03 -DS3FS_PTHREAD_ERRORCHECK=1' --prefix=/usr --with-openssl" CONFIGURE_OPTIONS="--prefix=/usr --with-openssl"
#----------------------------------------------------------- #-----------------------------------------------------------
# OS dependent variables # OS dependent variables
@ -290,8 +290,8 @@ fi
#----------------------------------------------------------- #-----------------------------------------------------------
echo "${PRGNAME} [INFO] Set environment for configure options" echo "${PRGNAME} [INFO] Set environment for configure options"
# shellcheck disable=SC2090 echo "CXXFLAGS=${CXXFLAGS}" >> "${GITHUB_ENV}"
export CONFIGURE_OPTIONS echo "CONFIGURE_OPTIONS=${CONFIGURE_OPTIONS}" >> "${GITHUB_ENV}"
echo "${PRGNAME} [INFO] Finish Linux helper for installing packages." echo "${PRGNAME} [INFO] Finish Linux helper for installing packages."

View File

@ -2260,54 +2260,54 @@ function test_not_existed_dir_obj() {
# Top directory # Top directory
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 | grep -q '^not_existed_dir_single$'; then if ! ls -1 | grep -q '^not_existed_dir_single$'; then
echo "Expect to find \"not_existed_dir_single\" directory, but it is not found" echo "Expect to find \"not_existed_dir_single\" directory, but it is not found"
return 1; return 1
fi fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 | grep -q '^not_existed_dir_parent$'; then if ! ls -1 | grep -q '^not_existed_dir_parent$'; then
echo "Expect to find \"not_existed_dir_parent\" directory, but it is not found" echo "Expect to find \"not_existed_dir_parent\" directory, but it is not found"
return 1; return 1
fi fi
# Single nest directory # Single nest directory
if ! stat not_existed_dir_single; then if ! stat not_existed_dir_single; then
echo "Expect to find \"not_existed_dir_single\" directory, but it is not found" echo "Expect to find \"not_existed_dir_single\" directory, but it is not found"
return 1; return 1
fi fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 not_existed_dir_single | grep -q "^${TEST_TEXT_FILE}\$"; then if ! ls -1 not_existed_dir_single | grep -q "^${TEST_TEXT_FILE}\$"; then
echo "Expect to find \"not_existed_dir_single/${TEST_TEXT_FILE}\" file, but it is not found" echo "Expect to find \"not_existed_dir_single/${TEST_TEXT_FILE}\" file, but it is not found"
return 1; return 1
fi fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 "not_existed_dir_single/${TEST_TEXT_FILE}" | grep -q "^not_existed_dir_single/${TEST_TEXT_FILE}\$"; then if ! ls -1 "not_existed_dir_single/${TEST_TEXT_FILE}" | grep -q "^not_existed_dir_single/${TEST_TEXT_FILE}\$"; then
echo "Expect to find \"not_existed_dir_single/${TEST_TEXT_FILE}\" file, but it is not found" echo "Expect to find \"not_existed_dir_single/${TEST_TEXT_FILE}\" file, but it is not found"
return 1; return 1
fi fi
# Double nest directory # Double nest directory
if ! stat not_existed_dir_parent; then if ! stat not_existed_dir_parent; then
echo "Expect to find \"not_existed_dir_parent\" directory, but it is not found" echo "Expect to find \"not_existed_dir_parent\" directory, but it is not found"
return 1; return 1
fi fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 not_existed_dir_parent | grep -q '^not_existed_dir_child'; then if ! ls -1 not_existed_dir_parent | grep -q '^not_existed_dir_child'; then
echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child\" directory, but it is not found" echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child\" directory, but it is not found"
return 1; return 1
fi fi
if ! stat not_existed_dir_parent/not_existed_dir_child; then if ! stat not_existed_dir_parent/not_existed_dir_child; then
echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child\" directory, but it is not found" echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child\" directory, but it is not found"
return 1; return 1
fi fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 not_existed_dir_parent/not_existed_dir_child | grep -q "^${TEST_TEXT_FILE}\$"; then if ! ls -1 not_existed_dir_parent/not_existed_dir_child | grep -q "^${TEST_TEXT_FILE}\$"; then
echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}\" directory, but it is not found" echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}\" directory, but it is not found"
return 1; return 1
fi fi
# shellcheck disable=SC2010 # shellcheck disable=SC2010
if ! ls -1 "not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}" | grep -q "^not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}\$"; then if ! ls -1 "not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}" | grep -q "^not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}\$"; then
echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}\" directory, but it is not found" echo "Expect to find \"not_existed_dir_parent/not_existed_dir_child/${TEST_TEXT_FILE}\" directory, but it is not found"
return 1; return 1
fi fi
rm -rf not_existed_dir_single rm -rf not_existed_dir_single