.
This commit is contained in:
parent
4096ff91e6
commit
888b576ea3
3 changed files with 13 additions and 9 deletions
5
add.sh
5
add.sh
|
|
@ -14,6 +14,11 @@ for arg in $@; do
|
|||
continue
|
||||
}
|
||||
|
||||
test -e "files/$file" && {
|
||||
>&2 echo "$f is already added"
|
||||
continue
|
||||
}
|
||||
|
||||
mkdir -vp "files/$(dirname "$file")"
|
||||
mv -iv "$arg" "files/$file"
|
||||
ln -vfs "$(realpath "files/$file")" "$arg"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue