catalyst-auto: standardize indentation
This file uses tabs in most of it, so migrate the few funcs using spaces over to tabs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
5bfe6e81dc
commit
cfc55d1712
1 changed files with 52 additions and 52 deletions
|
@ -71,10 +71,10 @@ run_cmd() {
|
||||||
shift
|
shift
|
||||||
|
|
||||||
echo "*** Running command: $*" &>> "${logfile}"
|
echo "*** Running command: $*" &>> "${logfile}"
|
||||||
if [ $verbose = 2 ]; then
|
if [[ ${verbose} == 2 ]]; then
|
||||||
echo "*** Running command: $*"
|
echo "*** Running command: $*"
|
||||||
"$@" 2>&1 | tee -a "${logfile}"
|
"$@" 2>&1 | tee -a "${logfile}"
|
||||||
elif [ $verbose = 1 ]; then
|
elif [[ ${verbose} == 1 ]]; then
|
||||||
echo "*** Running command: $*"
|
echo "*** Running command: $*"
|
||||||
"$@" &>> "${logfile}"
|
"$@" &>> "${logfile}"
|
||||||
else
|
else
|
||||||
|
@ -168,7 +168,7 @@ parse_args() {
|
||||||
give_latest_from_dates() {
|
give_latest_from_dates() {
|
||||||
sed 's,-20,~20,g' | \
|
sed 's,-20,~20,g' | \
|
||||||
sort -k +1 -n -t '~' | \
|
sort -k +1 -n -t '~' | \
|
||||||
awk -F\~ \
|
awk -F'~' \
|
||||||
'BEGIN{i=$1; o=$0};
|
'BEGIN{i=$1; o=$0};
|
||||||
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
|
{ if($1 != i && i != "") { print o; }; i=$1; o=$0; }
|
||||||
END { print o; };' | \
|
END { print o; };' | \
|
||||||
|
|
Loading…
Add table
Reference in a new issue