Skip to content

Commit

Permalink
Merge pull request #183 from AleksanderBobinski/bugfix/separate_ln_op…
Browse files Browse the repository at this point in the history
…tions_from_arguments

src: Separate ln options from arguments
  • Loading branch information
CyberShadow committed Dec 10, 2023
2 parents 247cb00 + d09b1f4 commit 94401f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ BEGIN {
mkdir --parents "$(dirname "$system_dir"/files/"$file")"
if [[ "$type" == "symbolic link" ]]
then
ln -s "$(sudo readlink "$file")" "$system_dir"/files/"$file"
ln -s -- "$(sudo readlink "$file")" "$system_dir"/files/"$file"
elif [[ "$type" == "regular file" || "$type" == "regular empty file" ]]
then
if [[ $size -gt $warn_size_threshold ]]
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function CreateLink() {

mkdir --parents "$(dirname "$output_dir"/files/"$file")"

ln --symbolic "$target" "$output_dir"/files/"$file"
ln --symbolic -- "$target" "$output_dir"/files/"$file"

SetFileProperty "$file" owner "$owner"
SetFileProperty "$file" group "$group"
Expand Down

0 comments on commit 94401f6

Please sign in to comment.