setup-kapelu 3.2.6 → 3.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.sh +15 -4
- package/package.json +1 -1
package/install.sh
CHANGED
|
@@ -52,6 +52,16 @@ check_git(){
|
|
|
52
52
|
fi
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
permits(){
|
|
56
|
+
while IFS= read -r -d '' file
|
|
57
|
+
do
|
|
58
|
+
if head -n1 "$file" | grep -q "^#!"
|
|
59
|
+
then
|
|
60
|
+
chmod +x "$file"
|
|
61
|
+
fi
|
|
62
|
+
done < <(find . -type f -print0)
|
|
63
|
+
}
|
|
64
|
+
|
|
55
65
|
backup_bashrc(){
|
|
56
66
|
|
|
57
67
|
if [ -f "$HOME_DIR/.bashrc" ]; then
|
|
@@ -69,11 +79,12 @@ clone_repo(){
|
|
|
69
79
|
|
|
70
80
|
copy_scripts(){
|
|
71
81
|
|
|
72
|
-
|
|
82
|
+
mkdir -p "$HOME_DIR/script"
|
|
73
83
|
|
|
74
|
-
|
|
84
|
+
cp -r "$TMP_DIR/script/." "$HOME_DIR/script/"
|
|
85
|
+
|
|
86
|
+
find "$HOME_DIR/script" -type f -name "*.sh" -exec chmod +x {} \;
|
|
75
87
|
|
|
76
|
-
chmod +x "$HOME_DIR/script/"*
|
|
77
88
|
}
|
|
78
89
|
|
|
79
90
|
copy_config(){
|
|
@@ -134,7 +145,7 @@ run_setup(){
|
|
|
134
145
|
|
|
135
146
|
printf "${green}📦 ¿Desea ejecutar setup.sh? (s/n): ${reset}"
|
|
136
147
|
read RESP
|
|
137
|
-
|
|
148
|
+
chmod +x setup.sh
|
|
138
149
|
|
|
139
150
|
if [ "$RESP" = "s" ]; then
|
|
140
151
|
bash "$HOME_DIR/script/setup.sh"
|