setup: align link()-output with printf if available
This commit is contained in:
parent
e89f02d745
commit
1a0e73ba49
1 changed files with 5 additions and 1 deletions
6
setup.sh
6
setup.sh
|
|
@ -15,7 +15,11 @@ link()
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "Linking $dst -> $src"
|
||||
if installed printf; then
|
||||
printf "%-48s -> %s\n" "$dst" "$src"
|
||||
else
|
||||
echo "Linking $dst -> $src"
|
||||
fi
|
||||
ln -sf "$src" "$dst"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue