File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ if [ -d "$workshopDir" ]; then
4242 fi
4343 fi
4444
45+ # Sanitise modName
46+ modName=$( echo " $modName " | tr ' /' ' -' | sed ' s/^[[:space:]]*//;s/[[:space:]]*$//' )
47+
4548 if [ " $ModDirFormat " = " false" ]; then
4649 # Remove @name symlinks
4750 rm -f " ./@$modName " > /dev/null 2>&1
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ if [ -d "$workshopDir" ]; then
4242 fi
4343 fi
4444
45+ # Sanitise modName
46+ modName=$( echo " $modName " | tr ' /' ' -' | sed ' s/^[[:space:]]*//;s/[[:space:]]*$//' )
47+
4548 if [ " $ModDirFormat " = " false" ]; then
4649 # Remove @name symlinks
4750 rm -f " ./@$modName " > /dev/null 2>&1
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ if [ -d "$workshopDir" ]; then
4242 fi
4343 fi
4444
45+ # Sanitise modName
46+ modName=$( echo " $modName " | tr ' /' ' -' | sed ' s/^[[:space:]]*//;s/[[:space:]]*$//' )
47+
4548 if [ " $ModDirFormat " = " false" ]; then
4649 # Remove @name symlinks
4750 rm -f " ./@$modName " > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments