mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-12 14:08:23 +02:00
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 |