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()
createSymlinks()
{
echo "Creating symbolic links to $symbin ..."
for file in "${bin}/"*
do
echo "- creating symlink: ${symbin}/${file##*/} -> $file"
ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null
done
echo -n "Creating symbolic links to $symbin ..."
if [[ -d $symbin && -w $symbin ]]; then
echo "OK"
for file in "${bin}/"*
do
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