Fix the post_update.sh annoyance that can remove a home directory.
Test: ./post_update.sh Change-Id: I0796421b6903d1f7ce185418a141c61f9be9d4a2
This commit is contained in:
parent
7c075dd489
commit
5b66401bd1
@ -1,8 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# external-updater provides:
|
||||
# $1 Path to the new version.
|
||||
# $2 Path to the old version.
|
||||
|
||||
if [ "$#" -lt 1 ]; then
|
||||
echo 'need at least the path to the current version!'
|
||||
exit 1
|
||||
fi
|
||||
cd $1
|
||||
|
||||
set -e
|
||||
|
Loading…
Reference in New Issue
Block a user