mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
Add status.sh script for checking git modifications
This commit is contained in:
parent
36f8f5b5f7
commit
1df0bc5443
20
status.sh
Executable file
20
status.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
source config.sh
|
||||
|
||||
if [ $# = 0 ]
|
||||
then
|
||||
recipes="$(ls -1 recipes)"
|
||||
else
|
||||
recipes="$@"
|
||||
fi
|
||||
|
||||
for recipe in $recipes
|
||||
do
|
||||
echo -e "\e[1m$recipe\e[0m"
|
||||
if [ -d "recipes/$recipe/source/.git" ]
|
||||
then
|
||||
git -C "recipes/$recipe/source" status -s
|
||||
fi
|
||||
done
|
||||
Loading…
Reference in New Issue
Block a user