]> git.armaanb.net Git - charsel.git/blobdiff - charsel
Small changes to improve usability
[charsel.git] / charsel
diff --git a/charsel b/charsel
index 3961cf2f38bd47bd8b9aa3e0f2938fa8591ea270..01f1d3f4d7f18fc8e9ea1999bcdb8331ea6eafec 100755 (executable)
--- a/charsel
+++ b/charsel
@@ -1,12 +1,14 @@
 #!/usr/bin/env sh
 
 # Merge both global and local charfiles
-mkdir ~/.cache/charsel/ &
 cp /usr/share/charsel/* ~/.cache/charsel/
 cp ~/.local/share/charsel/* ~/.cache/charsel/
 CHARDIR=~/.cache/charsel
 
-# clear screen
+# Check if user provided a charfile
+[ -z "$1" ] && echo "No argument supplied"  && exit 1
+
+# Clear screen
 clear
 
 while :