addet check for commitfiles
This commit is contained in:
parent
6891475ce8
commit
6c565c7bba
1 changed files with 5 additions and 1 deletions
|
@ -435,6 +435,10 @@ setup-alias() {
|
||||||
trimmed_files+=("${f#./}")
|
trimmed_files+=("${f#./}")
|
||||||
done
|
done
|
||||||
|
|
||||||
|
local comfiles
|
||||||
|
comfiles="${#trimmed_files[*]}"
|
||||||
|
# if comfiles (commited files) bigger than 1 | at least one
|
||||||
|
((comfiles >= 1)) &&
|
||||||
printf "${GREEN}Committed files/folders: ${BOLD}${trimmed_files[*]}${NC}\n"
|
printf "${GREEN}Committed files/folders: ${BOLD}${trimmed_files[*]}${NC}\n"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue