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
No related branches found
No related tags found
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 ..."
for file in "${bin}/"* if [[ -d $symbin && -w $symbin ]]; then
do echo "OK"
echo "- creating symlink: ${symbin}/${file##*/} -> $file" for file in "${bin}/"*
ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null do
done echo "- creating symlink: ${symbin}/${file##*/} -> $file"
ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null
done
else
echo "FAILED!"
fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment