File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 9595# Set temp file
9696TEMP_FILE=" ${INSTALL_PATH} /temp.json"
9797
98- # Create the install path if it doesn't exist
99- mkdir -p " $INSTALL_PATH "
100-
10198# Check if node and path are provided
10299if [ -z " $NODE " ] || [ -z " $DISTRIBUTION " ] || [ -z " $INSTALL_PATH " ]; then
103100 usage
104101fi
105102
103+ # Create the install path if it doesn't exist
104+ mkdir -p " $INSTALL_PATH "
105+
106+ # Check if install path is writable
107+ if [ ! -w " $INSTALL_PATH " ]; then
108+ error_exit " Error: The specified install path '$INSTALL_PATH ' is not writable."
109+ fi
110+
106111# Validate node
107112if [ " $NODE " != " mithril-signer" ] && [ " $NODE " != " mithril-aggregator" ] && [ " $NODE " != " mithril-client" ]; then
108113 echo " Invalid node: $NODE "
You can’t perform that action at this time.
0 commit comments