Skip to content

Commit 60ed7ce

Browse files
normalize path
1 parent 8130461 commit 60ed7ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ for c in $CONNECTORS; do
3838
# Make specified directory
3939
mkdir -p "pinouts/$DIRECTORY"
4040
# Move the contents of the directory the link points to, and remove that directory
41-
mv "$(readlink "$DIR")"/* "pinouts/$DIRECTORY"
42-
rmdir "$(readlink "$DIR")"
41+
mv "$(readlink -f "$DIR")"/* "pinouts/$DIRECTORY"
42+
rmdir "$(readlink -f "$DIR")"
4343
# Link to specified directory
4444
rm "$DIR"
4545
ln -rs "pinouts/$DIRECTORY" "$DIR"

0 commit comments

Comments
 (0)