Skip to content

Commit 701b1ff

Browse files
chore(php): corrected mv check
1 parent d499f9a commit 701b1ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

recipes/newrelic/apm/php/debian.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,10 @@ install:
548548
# system.
549549
#
550550
551-
ini_dir=$(dirname "$ini_full_name")
552-
if [[ "$ini_dir" != "$target_ini_dir" ]]; then
553-
mv "${ini_full_name}" "${target_ini_dir}"
551+
source_dir=$(dirname "$(realpath "$ini_full_name")")
552+
destination_dir=$(realpath "$target_ini_dir")
553+
if [[ "$source_dir" != "$destination_dir" ]]; then
554+
mv "${ini_full_name}" "${destination_dir}"
554555
fi
555556
556557
#

0 commit comments

Comments
 (0)