Clean up print queue script and implementation.
This commit is contained in:
parent
70c45c477f
commit
5818c027ac
7 changed files with 43 additions and 42 deletions
|
@ -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|" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue