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

Test if file exists before to execute sed

parent 9402f5e1
#!/bin/sh
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
fi
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