Skip to content
Snippets Groups Projects
Commit 16a5c8b0 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

pridana kontrola adresare pro umisteni symlinku

parent d02e1294
Branches
Tags
No related merge requests found
...@@ -175,12 +175,18 @@ createManifest() ...@@ -175,12 +175,18 @@ createManifest()
createSymlinks() createSymlinks()
{ {
echo "Creating symbolic links to $symbin ..." echo -n "Creating symbolic links to $symbin ..."
if [[ -d $symbin && -w $symbin ]]; then
echo "OK"
for file in "${bin}/"* for file in "${bin}/"*
do do
echo "- creating symlink: ${symbin}/${file##*/} -> $file" echo "- creating symlink: ${symbin}/${file##*/} -> $file"
ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null
done done
else
echo "FAILED!"
fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment