From 0f9c4f2cacdb925cd6c353378902e39677cb41f2 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 15 Apr 2020 14:08:43 -0600 Subject: [PATCH] update welcome.rb --- Makefile | 2 +- welcome.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6210081..c99432a 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,6 @@ PREFIX ?= /usr/local install: $(info installing welcome to $(PREFIX)) - @install -m 755 welcome.rb $(PREFIX)/bin/welcome + @install -m 755 welcome.rb $(PREFIX)/bin/firstlogin .PHONY: install diff --git a/welcome.rb b/welcome.rb index 484a4ef..7a4440b 100644 --- a/welcome.rb +++ b/welcome.rb @@ -102,8 +102,9 @@ puts puts "please come stop by chat when you get a chance by running the 'chat' command" unless enable_byobu puts "we're happy to help as needed and get you any information you're looking for" puts "have a look at our wiki: https://tilde.club/wiki/ (ctrl-click will let you open that from here)" -File.delete("#{Env.home}/.new_user") +File.delete("#{Dir.home}/.new_user") if enable_byobu exec "byobu" end +