aboutsummaryrefslogtreecommitdiff
path: root/updateconf
diff options
context:
space:
mode:
Diffstat (limited to 'updateconf')
-rwxr-xr-xupdateconf6
1 files changed, 3 insertions, 3 deletions
diff --git a/updateconf b/updateconf
index 60475e1..c454a1c 100755
--- a/updateconf
+++ b/updateconf
@@ -12,14 +12,14 @@ command -v $EDITOR >/dev/null || {
exit 1
}
-spkgnew=$(find /etc -regextype posix-extended -regex ".+\.new" 2> /dev/null)
+pkgnew=$(find /etc -type f -name "*.new" 2> /dev/null)
-[ "$spkgnew" ] || {
+[ "$pkgnew" ] || {
echo "Nothing to do. Exiting..."
exit 0
}
-for file in $spkgnew; do
+for file in $pkgnew; do
currentfile=${file%.*}
if [ ! -e "$currentfile" ]; then
echo "Remove '$file', '$currentfile' not exist."