File tree 2 files changed +25
-4
lines changed
2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ get_project_id() {
9
9
}
10
10
11
11
PROJECT_ID=$( get_project_id)
12
- INSTALL_LOCATION=" /home/ ${USER } /.local/share/plasma/plasmoids/"
12
+ INSTALL_LOCATION=" ${HOME } /.local/share/plasma/plasmoids/"
13
13
14
14
echo " Installing ${PROJECT_ID} "
15
15
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- PACKAGE_NAME=" ClearClock"
3
+ prompt () {
4
+ while true ; do
5
+ echo -e " $1 [y/n]: "
6
+ read -r yn
7
+ case ${yn} in
8
+ [Yy]* ) return 0 ;;
9
+ [Nn]* ) return 1 ;;
10
+ esac
11
+ done
12
+ }
13
+
14
+ get_project_name () {
15
+ line=$( grep " ^Name" package/metadata.desktop)
16
+ IFS=' ='
17
+ read -ra array <<< " ${line}"
18
+ projectname=${array[1]}
19
+ echo ${projectname}
20
+ }
21
+
22
+ PACKAGE_NAME=$( get_project_name)
4
23
5
24
tar -czvf " ${PACKAGE_NAME} .tar.gz" -C " package/" .
6
- git add .
7
- git commit -m " Update package"
25
+
26
+ prompt " Do you want to commit and push the changes to the git repository?" && \
27
+ git add . && \
28
+ git commit -m " Update package" && \
8
29
git push
You can’t perform that action at this time.
0 commit comments