Fix the post_update.sh annoyance that can remove a home directory.

Test: ./post_update.sh
Change-Id: I0796421b6903d1f7ce185418a141c61f9be9d4a2
This commit is contained in:
Elliott Hughes 2024-05-01 16:05:29 +00:00
parent 7c075dd489
commit 5b66401bd1

View File

@ -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