mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
332f88ec8c
Change-Id: Ibe806972a19cd69bfd90be051cdc340c4d7c6afb Signed-off-by: Ziming Zhang <zziming@vmware.com>
13 lines
201 B
Bash
Executable File
13 lines
201 B
Bash
Executable File
#/bin/env bash
|
|
|
|
if [ ! -z "$*" ]; then
|
|
$@ 2>&1 | while read line;do
|
|
echo $(date +"%T") $line
|
|
done
|
|
exit ${PIPESTATUS[0]}
|
|
else
|
|
while read line;do
|
|
echo $(date +"%T") $line
|
|
done
|
|
echo ret $?
|
|
fi |