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 95
95
# Set temp file
96
96
TEMP_FILE=" ${INSTALL_PATH} /temp.json"
97
97
98
- # Create the install path if it doesn't exist
99
- mkdir -p " $INSTALL_PATH "
100
-
101
98
# Check if node and path are provided
102
99
if [ -z " $NODE " ] || [ -z " $DISTRIBUTION " ] || [ -z " $INSTALL_PATH " ]; then
103
100
usage
104
101
fi
105
102
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
+
106
111
# Validate node
107
112
if [ " $NODE " != " mithril-signer" ] && [ " $NODE " != " mithril-aggregator" ] && [ " $NODE " != " mithril-client" ]; then
108
113
echo " Invalid node: $NODE "
You can’t perform that action at this time.
0 commit comments