Skip to content

Commit

Permalink
Merge pull request #1 from schmoelder/master
Browse files Browse the repository at this point in the history
Use additional `ln` flags to avoid recursive links.
  • Loading branch information
gutow authored Jun 27, 2022
2 parents d97a6b0 + 1415919 commit 907c00f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnhubgrp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "Creating links to: "$LNKPATH
MBRSTR=$(members "$GRP")
MBRS=($MBRSTR) # array of members
for i in ${MBRS[@]}; do
lncmd="ln -s "$LNKPATH" /home/"$i"/"$1;
lncmd="ln -snf "$LNKPATH" /home/"$i"/"$1;
$lncmd;
echo "Added link in /home/"$i"."
done

0 comments on commit 907c00f

Please sign in to comment.