Skip to content

Commit 8aaf59c

Browse files
committed
Update
1 parent b3e756a commit 8aaf59c

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

documents/documents-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
# Start Bash (Unix Shell)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Install ghostscript

documents/file-management/file-management.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
# Start Bash (Unix Shell)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Install rnr

photos/photo-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
# Start Bash (Unix Shell)
13-
bash
13+
[ -z "$BASH" ] && exec bash
1414

1515

1616
# Install ExifTool

sports/gps-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
# Start Bash (Unix Shell)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Install gpsbabel

technology/git/git-tools.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## Git Tools
2-
# Last update: 2025-12-16
2+
# Last update: 2026-01-02
33

44

55
# Start Bash (Unix Shell)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Ignore certificate validation
@@ -14,10 +14,10 @@ bash
1414

1515
# Settings
1616
git_hostname="github.com"
17-
git_account=$(git config user.name) # Username or Organization
17+
git_account="$(git config user.name)" # Username or Organization
1818
git_repository="tools"
1919
git_branch="main"
20-
local_repository=$git_repository
20+
local_repository="$git_repository"
2121

2222

2323
# Set working directory
@@ -30,11 +30,11 @@ fi
3030

3131
# Clone repository if directory does not exist
3232
if [ ! -d "${local_repository}" ]; then
33-
git clone --branch "${git_branch}" "https://${git_hostname}/${git_account}/${git_repository}.git" ${local_repository}
33+
git clone --branch "${git_branch}" "https://${git_hostname}/${git_account}/${git_repository}.git" "${local_repository}"
3434
fi
3535

3636
# Set working directory
37-
cd $local_repository
37+
cd "$local_repository"
3838

3939

4040
# Download .pre-commit-config.yaml file
@@ -55,10 +55,10 @@ fi
5555
prettier --write --print-width 220 --prose-wrap never --semi true --single-quote true --tab-width 2 --trailing-comma es5 '**/*.{js,jsx,ts,tsx,mjs,cjs,json,css,scss,html,md,yaml}'
5656

5757
## PHP
58-
echo "no" | php-cs-fixer fix . --rules=@PSR12 --using-cache=no
58+
find . -type f -name "*.php" | grep -q . && php-cs-fixer fix . --rules=@PSR12 --using-cache=no --no-interaction
5959

6060
## XML
61-
find . -name "*.xml" -exec xmllint --format {} --output {} \;
61+
find . -type f -name "*.xml" -exec xmllint --format --output {} {} \;
6262

6363
## codespell
6464
codespell . --ignore-words-list=alle,als,bootup,datas,deine,dokument,doubleclick,fo,ges,ist,itens,nax,oder,produkt,referers,ressource,ser,sie,tage,termine # The --ignore-words-list argument has a bug where it needs to be lowercase, see: https://github.com/codespell-project/codespell/issues/1390
@@ -74,12 +74,12 @@ pre-commit run --all-files
7474

7575
## Python requirements.txt file
7676
# python -m pip install pipreqs
77-
if find . -type f -name "*.py" | grep -q "/."; then
77+
if find . -type f -name "*.py" | grep -q .; then
7878
pipreqs --encoding utf-8 --force "./"
7979

8080
# Check if "janitor" is in requirements.txt and replace it with pyjanitor
8181
if grep -q "janitor" "requirements.txt"; then
82-
sed -i '/janitor/c\pyjanitor==0.32.7' requirements.txt
82+
sed -i '/janitor/c\pyjanitor==0.32.8' requirements.txt
8383
pre-commit run --files "./requirements.txt"
8484
fi
8585

@@ -121,15 +121,15 @@ git commit --all --message="Update"
121121
git remote set-url origin "https://${git_hostname}/${git_account}/${git_repository}.git"
122122

123123
# Write commits to remote repository
124-
git push --force origin ${git_branch}
124+
git push --force origin "${git_branch}"
125125

126126

127127

128128

129129
## Squash commit history - https://stackoverflow.com/a/56878987/9195104
130130

131131
# Count of commits
132-
git rev-list --count HEAD ${git_branch}
132+
git rev-list --count HEAD "${git_branch}"
133133

134134

135135
# Create a temporary file to store commits to keep
@@ -162,8 +162,8 @@ rm --force $TOKEEP
162162

163163

164164
# Repository force update
165-
git push --force origin ${git_branch}
165+
git push --force origin "${git_branch}"
166166

167167

168168
# New count of commits
169-
git rev-list --count HEAD ${git_branch}
169+
git rev-list --count HEAD "${git_branch}"

technology/microsoft/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ python -m pip_review --local --auto
1717

1818
```.bash
1919
# Start Windows Subsystem for Linux (WSL)
20-
bash
20+
[ -z "$BASH" ] && exec bash
2121

2222
# Update package lists, upgrade installed packages, remove unused packages, and clean cache
2323
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && sudo apt clean

technology/microsoft/windows/windows-subsystem-for-linux-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
# Start Windows Subsystem for Linux (WSL)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Update package lists, upgrade installed packages, remove unused packages, and clean cache

technology/server/server-backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
# Start Bash (Unix Shell)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Install rsync

videos/video-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
# Start Bash (Unix Shell)
6-
bash
6+
[ -z "$BASH" ] && exec bash
77

88

99
# Install FFmpeg

0 commit comments

Comments
 (0)