Skip to content

Commit

Permalink
Make autobotchk Tcl9 compatible
Browse files Browse the repository at this point in the history
Found by: DasBrain
Patch by: TehPeGaSuS

TCL 9 removes the  `~` expansion ability (https://core.tcl-lang.org/tips/doc/trunk/tip/602.md)
  • Loading branch information
TehPeGaSuS authored Jul 29, 2024
1 parent 4b640f2 commit 24a0849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/autobotchk
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ if {$systemd} {
exit
}
puts "Creating systemd directory..."
catch {file mkdir ~/.config/systemd/user } res
if {[catch {open ~/.config/systemd/user/${botnet-nick}.service w} fd]} {
catch {file mkdir "$::env(HOME)/.config/systemd/user" } res
if {[catch {open "$::env(HOME)/.config/systemd/user/${botnet-nick}.service" w} fd]} {
puts " *** ERROR: unable to open '${botnet-nick}.service' for writing"
puts ""
exit
Expand Down

0 comments on commit 24a0849

Please sign in to comment.