diff --git a/src/installer.cr b/src/installer.cr new file mode 100644 index 0000000..0c801d1 --- /dev/null +++ b/src/installer.cr @@ -0,0 +1,15 @@ +orange = "\e[38;5;214m" +red = "\e[38;5;52m" +bold = "\033[1m" +reset = "\e[0m" + +if Process.uid != 0 + puts "#{red}#{bold}You must be in root to install wfetch!#{reset}" + exit(0) +end + +puts "#{orange}#{bold}wfetch installer 0.1.0#{reset}" + +File.copy("data/wfetch", "/usr/bin/wfetch") + +puts "Finished" \ No newline at end of file