}
elsif ($a =~ /^u/i) {
+ if ( -l "$user[5]/.loginshell" or -e "$user[5]/.loginshell" ) {
+ if (!DRY) {
+ system("rm '$user[5]/.loginshell'");
+ } else {
+ warn qq{system("rm '$user[5]/.loginshell'")\n};
+ }
+ }
+
if ( $$store{$u}{shell}) {
- if ( -l "$user[5]/.loginshell" or -e "$user[5]/.loginshell" ) {
- if (!DRY) {
- system("rm '$user[5]/.loginshell'");
- } else {
- warn qq{system("rm '$user[5]/.loginshell'")\n};
- }
- }
if (!DRY) {
symlink($$store{$u}{shell}, "$user[5]/.loginshell")
or warn "symlink: $!";