Commit adf20aaa authored by Vojtech Myslivec's avatar Vojtech Myslivec 🚀

opkg-wrapper: Cleanse PACKAGES variable ASAP

parent 7b47e211
Pipeline #23254 failed with stages
in 21 minutes and 48 seconds
......@@ -72,6 +72,10 @@ $1"
shift
done
# delete first empty line
PACKAGES="$( echo "$PACKAGES" | sed '1d' )"
# As first takes name of package to be added to config file.
config_add_pkg() {
echo "Install(\"$1\")" >>"$UPDATER_CONFIG"
......@@ -146,7 +150,7 @@ if [ ! -f "$UPDATER_CONFIG" ]; then
echo "-- This is automatically generated file managed by opkg wrapper script. Please don't edit!" > "$UPDATER_CONFIG"
fi
echo "$PACKAGES" | sed '1d' | while read P; do
echo "$PACKAGES" | while read P; do
case "$OPERATION" in
i) # Install
install "$P"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment