We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3198721 commit e0c78faCopy full SHA for e0c78fa
scripts/commit.sh
@@ -23,7 +23,10 @@ git status -s | grep '^ D ' | cut -d' ' -f3 | xargs -r git rm
23
git diff -I'^"POT-Creation-Date: ' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v
24
25
# Add currently untracked PO files, and update other helper files
26
-git add -v $(git ls-files -o --exclude-standard *.po **/*.po)
+untracked_files=$(git ls-files -o --exclude-standard *.po **/*.po)
27
+if [ -n "${untracked_files+x}" ]; then
28
+ git add -v $untracked_files
29
+fi
30
31
# Commit only if there is any cached file
32
git diff-index --cached --quiet HEAD || { git add -v $extra_files; git commit -vm "Update translations"; }
0 commit comments