scripts: add quotes to paths

This commit is contained in:
bol-van
2024-08-25 18:04:11 +03:00
parent 6276d92ffb
commit 15751976e0
5 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ check_dir()
# link or copy executables. uncomment either ln or cp, comment other
ccp()
{
local F=$(basename $1)
local F="$(basename "$1")"
[ -d "$ZAPRET_BASE/$2" ] || mkdir "$ZAPRET_BASE/$2"
[ -f "$ZAPRET_BASE/$2/$F" ] && rm -f "$ZAPRET_BASE/$2/$F"
ln -fs "../$BINS/$1" "$ZAPRET_BASE/$2" && echo linking : "../$BINS/$1" =\> "$ZAPRET_BASE/$2"