Skip to content
Snippets Groups Projects
Commit 658f6730 authored by Gabriel Fedel's avatar Gabriel Fedel :speech_balloon:
Browse files

Check if install path exists and if is writable

parent 191503a6
No related branches found
No related tags found
1 merge request!17Change the way to set alias and description
......@@ -5,10 +5,22 @@ if [ $# -ne 2 ]; then
exit
fi
installPath=/iocs/sis8300llrf
if [ ! -d $installPath ]; then
echo "Folder $installPath not found!"
exit
fi
if [ ! -w $installPath ]; then
echo "You cannot write on $installPath !"
exit
fi
iNum=$1
confFile=$2
installPath=/iocs/sis8300llrf
fPath=$installPath/config-aliasing$iNum.iocsh
fPathDesc=$installPath/config-desc$iNum.iocsh
......
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