diff --git a/persoconf/main.py b/persoconf/main.py index bf54746..d214a16 100755 --- a/persoconf/main.py +++ b/persoconf/main.py @@ -423,7 +423,7 @@ if args.command == "package": # Remove possible 'home'. The final targz should be extracted # at 'home. - if filedest[0] == '~' and filedest[1] == '/': + if filedest.startswith("~/"): filedest = filedest[2:] # TODO save and restore owners and permissions