-#!/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 src/charsel
-
-# Makes local folder
-mkdir -p ~/.local/share/charsel/charfiles/
-
-# 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 src/motd /usr/share/charsel
- cp src/charsel /usr/bin/
- exit
-else
- cp charfiles/* ~/.local/share/charsel/charfiles/
- cp src/motd ~/.local/share/charsel/
- cp src/charsel ~/.local/bin/
- exit
-fi