Skip to content

Commit a60ed71

Browse files
committed
Proper check if user is logged in
1 parent f46cd2d commit a60ed71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powershell/smack_my_bitch_up.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if ($DAYOFWEEK -eq 6 -or $DAYOFWEEK -eq 7) {
66
}
77

88
# Exit early if no sessions with my username are found
9-
if ((QWINSTA $env:USERNAME | measure).Count -gt 0){
9+
if (-not (QWINSTA | FINDSTR $env:USERNAME)) {
1010
return
1111
}
1212

0 commit comments

Comments
 (0)