Changeset 24 for scripts/usr/local/lib/7dtd/commands
- Timestamp:
- May 26, 2014, 2:29:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/instances.sh
r23 r24 53 53 echo 54 54 fi 55 configEditAll 55 configEditAll configQueryValue 56 56 echo 57 57 configSetAutoParameters "$INSTANCE" … … 123 123 ;; 124 124 *) 125 configEdit${sects[$SEC]} 125 configEdit${sects[$SEC]} configQueryValue 126 126 echo 127 127 esac … … 161 161 } 162 162 163 sdtdSubcommandInstancesPrintConfig() { 164 if [ $(isValidInstance "$1") -eq 0 ]; then 165 echo "No instance given or not a valid instance!" 166 return 167 fi 168 169 INSTANCE=$1 170 loadCurrentConfigValues "$1" 171 172 configEditAll printConfigValue 173 } 174 163 175 sdtdCommandInstances() { 164 176 SUBCMD=$1 … … 177 189 sdtdSubcommandInstancesDelete "$@" 178 190 ;; 191 print_config) 192 sdtdSubcommandInstancesPrintConfig "$@" 193 ;; 179 194 *) 180 195 sdtdCommandInstancesHelp … … 203 218 case $1 in 204 219 2) 205 echo "list create edit delete "220 echo "list create edit delete print_config" 206 221 ;; 207 222 3) 208 223 case $2 in 209 edit|delete )224 edit|delete|print_config) 210 225 echo "$(getInstanceList)" 211 226 ;;
Note:
See TracChangeset
for help on using the changeset viewer.