if user.json exists but empty then add content not append
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -260,8 +260,12 @@ for i in $(echo $PROXY_TYPE); do
|
||||
if [[ -f $USER_CONFIG_PATH ]]; then
|
||||
TARGET=$(cat $USER_CONFIG_PATH | head -n-2);
|
||||
{
|
||||
echo $TARGET
|
||||
echo "},"
|
||||
if [ "$TARGET" != "" ]; then
|
||||
echo $TARGET
|
||||
echo "},"
|
||||
else
|
||||
echo "{";
|
||||
fi;
|
||||
echo $LETS_CONTENT
|
||||
echo "}"
|
||||
} >> "$TMP_FILE";
|
||||
|
||||
Reference in New Issue
Block a user