Commit 60f4b998 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Test if file exists before to execute sed

parent 7ec7852c
#!/bin/sh #!/bin/sh
sed -i "s/\/korganizer.desktop/\/org.kde.korganizer.desktop/" `kf5-config --path config --locate kickoffrc` kickoffrcname=`kf5-config --path config --locate kickoffrc`
if [ -f "$kickoffrcname" ]; then
sed -i "s/\/korganizer.desktop/\/org.kde.korganizer.desktop/" $kickoffrcname
Supports Markdown
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