Commit e4104835 authored by Natanael Copa's avatar Natanael Copa

release 0.8_beta2. fixed bug update-conf and lbu commit whern there already...

release 0.8_beta2. fixed bug update-conf and lbu commit whern there already exist a /etc/lbu/include file
parent 3e8dc371
......@@ -173,9 +173,9 @@ cmd_commit() {
cd "$ROOT"
# for upgrading from packages.list times
if [ ! -f "$INCLUDE_LIST" ] ; then
mkdir -p $(dirname "$INCLUDE_LIST")
echo "var/lib/apk/world" > "$INCLUDE_LIST"
mkdir -p $(dirname "$INCLUDE_LIST")
if ! grep "var/lib/apk/world" "$INCLUDE_LIST" >/dev/null 2>&1 ; then
echo "var/lib/apk/world" >> "$INCLUDE_LIST"
fi
# Automatically add list and modified files
......
......@@ -41,7 +41,7 @@ while getopts "alih" opt ; do
done
shift `expr $OPTIND - 1`
find "$ROOT/etc" -name '*.apk-new' | while read apknew ; do
for apknew in $(find "$ROOT/etc" -name '*.apk-new') ; do
p="${apknew%.apk-new}"
f="${p#${ROOT}/}"
unset choice
......
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