Fix small bug in upload script
- Author
- Maarten Vangeneugden
- Date
- Sept. 14, 2023, 2:28 p.m.
- Hash
- 262bf55ef115578d35292641da32c683d78c1239
- Parent
- c9b830d526c74c0452ee7259aef1493cd4501457
- Modified file
- upload-changes.sh
upload-changes.sh ¶
2 additions and 3 deletions.
View changes Hide changes
1 |
1 |
rsync -r -e 'ssh -p 1111' -a --delete --partial --info=stats1,progress2 shared/planning/ maarten@maartenv.be:/home/maarten/backup/shared/planning |
2 |
2 |
|
3 |
3 |
echo -e "Sending weekly folder to HQ: " |
4 |
4 |
rsync -r -e 'ssh -p 1111' -a --delete --partial --info=stats1,progress2 shared/weekly/ maarten@maartenv.be:/home/maarten/backup/shared/weekly |
5 |
5 |
|
6 |
6 |
echo -e "Sending IDLab folder to HQ: " |
7 |
7 |
rsync -r -e 'ssh -p 1111' -a --delete --partial --info=stats1,progress2 IDLab/ maarten@maartenv.be:/home/maarten/backup/IDLab |
8 |
8 |
|
9 |
9 |
echo -e "Checking all repositories for outstanding commits...\n" |
10 |
10 |
cd ~/Repositories |
11 |
- | for directory in */ ; do |
+ |
11 |
for directory in */ ; do |
12 |
12 |
cd $directory |
13 |
13 |
echo -e "Checking $directory...\n" |
14 |
14 |
files="$(git status -s)" |
15 |
15 |
if [ "${files:0:2}" == " M" ]; then |
16 |
16 |
i3-nagbar -t warning -m "Repository $directory has uncommitted modifications!" |
17 |
- | break |
18 |
- | else |
+ |
17 |
else |
19 |
18 |
git push # Pushing the changes to the upstream repo if applicable |
20 |
19 |
fi |
21 |
20 |
cd .. # Returning to Repositories |
22 |
21 |
done |
23 |
22 |
|
24 |
23 |
cd ~ |
25 |
24 |