Skip to content

Commit c006d82

Browse files
committed
style(packaging): use long-form flags for less common options
Replace short flags with long-form equivalents for less obvious options: ln -sfn → --symbolic --force --no-dereference cp -L → --dereference grep -qE → --quiet --extended-regexp Kept short form for universally known flags (mkdir -p, rm -rf, chown -R, docker -v/-w/-e, etc.).
1 parent 4e6444d commit c006d82

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/core/tools/packaging/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ activate_build_family() {
147147
done
148148

149149
# Point build/ and .task/ at the target family
150-
ln -sfn "build-${target_family}" "${repo_root}/build"
151-
ln -sfn ".task-${target_family}" "${repo_root}/.task"
150+
ln --symbolic --force --no-dereference "build-${target_family}" "${repo_root}/build"
151+
ln --symbolic --force --no-dereference ".task-${target_family}" "${repo_root}/.task"
152152
}
153153

154154
# --- Build for each format and architecture ----------------------------------

components/core/tools/packaging/common/bundle-libs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ for bin in "${BINARIES[@]}"; do
7676
[[ -n "${lib_path}" && "${lib_path}" == /* ]] || continue
7777

7878
lib_name=$(basename "${lib_path}")
79-
echo "${lib_name}" | grep -qE "${EXCLUDE_PATTERN}" && continue
79+
echo "${lib_name}" | grep --quiet --extended-regexp "${EXCLUDE_PATTERN}" && continue
8080

8181
if [[ ! -f "${STAGING_DIR}${lib_install_dir}/${lib_name}" ]]; then
82-
cp -L "${lib_path}" "${STAGING_DIR}${lib_install_dir}/${lib_name}"
82+
cp --dereference "${lib_path}" "${STAGING_DIR}${lib_install_dir}/${lib_name}"
8383
echo " Bundled: ${lib_name}"
8484
fi
8585
done

0 commit comments

Comments
 (0)