]> git.phdru.name Git - ppu.git/blobdiff - scripts/rm.py
Fix(rm.py): Do not ask to remove read-only files when -f is active
[ppu.git] / scripts / rm.py
index 17d4164dcb35f14e2da2f692d09732876be5f962..fca4dca6dc4c2ac84689f31dea4e3ad228fdcab8 100755 (executable)
@@ -24,7 +24,7 @@ if __name__ == '__main__':
         if args.force and not os.path.exists(name):
             continue
         is_dir = os.path.isdir(name)
-        if not os.access(name, os.W_OK):
+        if not args.force and not os.access(name, os.W_OK):
             if is_dir:
                 ftype = 'directory'
             else: