preload error on unrecognized list format

pull/239/head
Botspot 4 years ago
parent c40c497a9c
commit 9f1278db14

@ -24,6 +24,8 @@ format="$1"
if [ -z "$format" ];then if [ -z "$format" ];then
format=yad format=yad
elif [ "$format" != 'yad' ] && [ "$format" != 'xlunch' ];then
error "Unknown list format '$format'!"
fi fi
#specifies an app folder(s) #specifies an app folder(s)
@ -213,7 +215,6 @@ ${i} "\("$(cat "${DIRECTORY}/data/status/${i}" 2>/dev/null || echo "uninstalled"
#save entire list string to file for future use #save entire list string to file for future use
echo "$LIST" > "$listfile" echo "$LIST" > "$listfile"
export CACHED_LIST="$LIST"
#save timestamps to file too #save timestamps to file too
mktimestamps mktimestamps

Loading…
Cancel
Save