File: postrm

package info (click to toggle)
ukui-sidebar 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,088 kB
  • sloc: cpp: 21,183; sh: 35; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -e

#DEBHELPER#

home="/home/"

db_file="/.config/ukui/Clock_database.db"
feedback="/.config/ukui/url.conf"

for file in $(ls /home)
do
  db_file_path=${home}${file}${db_file}  
  feedback_path=${home}${file}${feedback}  
  if [  -f "$db_file_path" ]; then
 	rm "$db_file_path"
  fi
  if [  -f "$feedback_path" ]; then
 	rm "$feedback_path"
  fi
done