Merge pull request 'Avoid repeating mkdir command' (#17) from rokosun-patch-2 into main
Reviewed-on: #17
This commit is contained in:
commit
1c40099be8
|
@ -4,8 +4,6 @@ datastore="$HOME"/.local/share/fix-zombie-appicons
|
|||
bakdir="$datastore"/backup
|
||||
data="$datastore"/tweaked-desktop-files
|
||||
|
||||
mkdir -p "$bakdir" || { echo "failed to make directory $bakdir"; exit 1; }
|
||||
|
||||
# Directories where desktop files are stored
|
||||
user="$HOME"/.local/share/applications
|
||||
pacman_global=/usr/share/applications
|
||||
|
@ -14,7 +12,8 @@ flatpak_global=/var/lib/flatpak/exports/share/applications
|
|||
flatpak_local="$HOME"/.local/share/flatpak/exports/share/applications
|
||||
snap=/var/lib/snapd/desktop/applications
|
||||
|
||||
mkdir -p "$user" "$flatpak_local" || { echo "failed to make directoris $user & $flatpak_local"; exit 1; }
|
||||
mkdir -p "$bakdir" "$user" "$flatpak_local" ||
|
||||
{ echo "failed to make directoris $bakdir, $user & $flatpak_local"; exit 1; }
|
||||
|
||||
detectfiles() {
|
||||
for file in "$user"/*.desktop; do
|
||||
|
|
Loading…
Reference in New Issue
Block a user