mirror of
https://github.com/RyanGreenup/cadmus.git
synced 2025-08-07 06:37:03 +02:00
Added Quotes in script
This commit is contained in:
@@ -21,7 +21,7 @@ main() {
|
|||||||
# *** Check for Dependencies
|
# *** Check for Dependencies
|
||||||
check_for_dependencies () {
|
check_for_dependencies () {
|
||||||
|
|
||||||
for i in ${DependArray[@]}; do
|
for i in "${DependArray[@]}"; do
|
||||||
command -v "$i" >/dev/null 2>&1 || { echo >&2 "I require $i but it's not installed. Aborting."; exit 1; }
|
command -v "$i" >/dev/null 2>&1 || { echo >&2 "I require $i but it's not installed. Aborting."; exit 1; }
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -55,9 +55,9 @@ Help () {
|
|||||||
echo
|
echo
|
||||||
echo -e " \e[3m\e[1m• Usage \e[0m "
|
echo -e " \e[3m\e[1m• Usage \e[0m "
|
||||||
echo
|
echo
|
||||||
echo -e " "${script_name}" [<path/to/notes>]"
|
echo -e " ${script_name} [<path/to/notes>]"
|
||||||
echo -e " "${script_name}" [-h]"
|
echo -e " ${script_name} [-h]"
|
||||||
echo -e " "${script_name}" [--help]"
|
echo -e " ${script_name} [--help]"
|
||||||
echo
|
echo
|
||||||
echo -e " \e[3m By Design: No Options; No other Arguments\e[0m"
|
echo -e " \e[3m By Design: No Options; No other Arguments\e[0m"
|
||||||
echo
|
echo
|
||||||
@@ -96,7 +96,7 @@ SkimNotes () {
|
|||||||
|
|
||||||
FILE="$(SkimGrep)"
|
FILE="$(SkimGrep)"
|
||||||
if [[ $FILE != "" ]]; then
|
if [[ $FILE != "" ]]; then
|
||||||
realpath $FILE && exit 0
|
realpath "${FILE}" && exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user