From 85a4c96299e44e38f7a1a8c9e38d863f29d9d111 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me> Date: Wed, 16 Sep 2020 16:29:36 -0400 Subject: [PATCH] new file structure --- INSTALL.sh => INSTALL | 13 ++++++++----- charsel => src/charsel | 0 motd => src/motd | 0 3 files changed, 8 insertions(+), 5 deletions(-) rename INSTALL.sh => INSTALL (58%) rename charsel => src/charsel (100%) rename motd => src/motd (100%) diff --git a/INSTALL.sh b/INSTALL similarity index 58% rename from INSTALL.sh rename to INSTALL index d883b14..c7eb02e 100755 --- a/INSTALL.sh +++ b/INSTALL @@ -1,21 +1,24 @@ #!/bin/env sh - +# Make the folder in /tmp and make sure that it is writeable mkdir /tmp/charsel/ chmod 777 /tmp/charsel/ + +# Makes charsel executeable chmod +x charsel +# 2 sets of commands for whether it is root or not if [ `whoami` == root ]; then mkdir -p /usr/share/charsel/charfiles cp charfiles/* /usr/share/charsel/charfiles/ mkdir /usr/share/doc/charsel cp README.md /usr/share/doc/charsel/ - cp motd /usr/share/charsel - cp charsel /usr/bin/ + cp src/motd /usr/share/charsel + cp src/charsel /usr/bin/ exit else mkdir -p ~/.local/share/charsel/charfiles cp charfiles/* ~/.local/share/charsel/charfiles - cp motd ~/.local/share/charsel/ - cp charsel ~/.local/bin/ + cp src/motd ~/.local/share/charsel/ + cp src/charsel ~/.local/bin/ exit fi diff --git a/charsel b/src/charsel similarity index 100% rename from charsel rename to src/charsel diff --git a/motd b/src/motd similarity index 100% rename from motd rename to src/motd -- 2.39.2