Check sanity of WORKING_DIRECTORY variable. cd into $WORKING_DIRECTORY before sourcing other scripts.
This commit is contained in:
parent
5bca1f498b
commit
ff2ea6b8f2
14
update_psa
14
update_psa
@ -70,7 +70,19 @@ while test $# -gt 0; do
|
|||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -z "$WORKING_DIRECTORY" ]; then
|
||||||
|
echo "WORKING_DIRECTORY empty. exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "$WORKING_DIRECTORY" ]; then
|
||||||
|
echo "WORKING_DIRECTORY $WORKING_DIRECTORY does not exist! exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$WORKING_DIRECTORY"
|
||||||
|
|
||||||
source ./update_psa_impl
|
source ./update_psa_impl
|
||||||
|
|
||||||
if read_config; then
|
if read_config; then
|
||||||
|
Loading…
Reference in New Issue
Block a user