Commit b4e97551 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Test if file exists before to execute sed

parent 9402f5e1
sed -i "s/\/kalarm.desktop/\/org.kde.kalarm.desktop/" `kf5-config --path config --locate kickoffrc`
kickoffrcname=`kf5-config --path config --locate kickoffrc`
if [ -f "$kickoffrcname" ]; then
sed -i "s/\/kalarm.desktop/\/org.kde.kalarm.desktop/" $kickoffrcname
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment