Commit fc1042cc authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack generic.post.sh: fix checking

parent 386b46bd
......@@ -31,7 +31,7 @@ for DESKTOPFILE in $BUILDROOT/usr/share/applications/*.desktop ; do
EXEC="$(get_desktop_value "$DESKTOPFILE" "Exec")"
if echo "$EXEC" | grep -q "/" ; then
warning "Exec path in desktop file $DESKTOPFILE contains slashes: $EXEC"
elif [ ! -f "./usr/bin/$EXEC" ] ; then
elif [ ! -s "./usr/bin/$EXEC" ] ; then
warning "Exec from desktop file $DESKTOPFILE missed in /usr/bin: $EXEC"
elif [ ! -x "./usr/bin/$EXEC" ] ; then
warning "Exec from desktop file $DESKTOPFILE exists in /usr/bin, but not executable: $EXEC"
......
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