1
1
#! /bin/env bash
2
+ # shellcheck disable=SC2154
3
+ # shellcheck disable=SC1090
2
4
3
5
SUPER () {
4
6
local command=" $* "
@@ -107,7 +109,7 @@ box_me() {
107
109
done
108
110
109
111
local s=" ${sender} $* "
110
- tput setaf ${color}
112
+ tput setaf " ${color} "
111
113
echo -e " ═${s// ?/ ═} "
112
114
echo -e " ║$s ║"
113
115
echo -e " ═${s// ?/ ═} "
@@ -239,7 +241,7 @@ navigate_clone() {
239
241
source " ${META_FILE} "
240
242
export CloneDir
241
243
export ScriptDir=" ${CloneDir} /Scripts"
242
- cd $ ScriptDir || handle_error " Cannot Change Directory to $ ScriptDir"
244
+ cd " ${ ScriptDir} " || handle_error " Cannot Change Directory to " ${ ScriptDir} " "
243
245
current_branch=$( git branch --show-current)
244
246
git_url=$( git remote get-url origin)
245
247
# check changes on the restore lst
@@ -250,11 +252,11 @@ set_metadata() {
250
252
CloneDir=${1:- ${CloneDir} }
251
253
export CloneDir
252
254
export ScriptDir=" ${CloneDir} /Scripts"
253
- cd $ ScriptDir || handle_error " Cannot Change Directory to $ ScriptDir"
255
+ cd " ${ ScriptDir} " || handle_error " Cannot Change Directory to " ${ ScriptDir} " "
254
256
current_branch=$( git branch --show-current)
255
257
git_url=$( git remote get-url origin)
256
258
# check changes on the restore lst
257
- restore_cfg_hash=" $( md5sum $ ScriptDir /restore_cfg.lst | cut -d' ' -f1) "
259
+ restore_cfg_hash=" $( md5sum " ${ ScriptDir} " /restore_cfg.lst | cut -d' ' -f1) "
258
260
git_hash=$( git rev-parse HEAD)
259
261
hyde_version=" $( printf " %s" " $( git describe --tags --always --long | sed ' s/\([^-]*-\)g/r\1/;s/-/./g' ) " ) "
260
262
modify_date=" $( git log -1 --pretty=format:" %cd" ) "
@@ -298,7 +300,7 @@ enable_package() {
298
300
fi
299
301
done
300
302
301
- if [[ -n " ${Pkg_Dep} " ]]; then
303
+ if [[ -n " ${Pkg_Dep[*] } " ]]; then
302
304
echo -e " $0 Dependencies:\n$Pkg_Dep "
303
305
get_aurhlpr
304
306
if [ -n " ${DISPLAY} " ]; then
0 commit comments