Clean up print queue script and implementation.

This commit is contained in:
Andreas B. Mundt 2023-11-11 10:05:47 +01:00
parent 70c45c477f
commit 5818c027ac
7 changed files with 43 additions and 42 deletions

View file

@ -9,8 +9,8 @@ file="${1:-$HOME/.local/share/user-places.xbel}"
[[ -e "$file" ]] || exit 0
if grep -q "Tausch\|Nextcloud" "$file" ; then
echo "Your Dolphin seems to already contain 'Tausch' and/or 'Nextcloud'."
exit 0
echo "Your Dolphin seems to already contain 'Tausch' and/or 'Nextcloud'." | tee "$file.lmn"
exit 0
fi
id="$(grep ID "$file" | sed -E "s|^.+ID>([[:digit:]]+)/([[:digit:]]+)</ID.+$|\1:\2|" \