File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 334
334
335
335
# Generate the command to import realms.
336
336
realmImport = lib . mapAttrsToList
337
- ( realm : e : ''
338
- echo "Symlinking realm file '${ e . path } ' to import path '$KC_HOME_DIR/data/import'."
339
- ln -fs "${ config . env . DEVENV_ROOT + "/" + e . path } " "$KC_HOME_DIR/data/import/"
340
- '' )
337
+ (
338
+ realm : e :
339
+ let
340
+ f = config . env . DEVENV_ROOT + "/" + e . path ;
341
+ in
342
+ ''
343
+ echo "Symlinking realm file '${ f } ' to import path '$KC_HOME_DIR/data/import'."
344
+ if [ ! -f "${ f } " ]; then
345
+ echo "Realm file '${ f } ' does not exist!" >&2
346
+ exit 1
347
+ fi
348
+ ln -fs "${ f } " "$KC_HOME_DIR/data/import/"
349
+ ''
350
+ )
341
351
( lib . filterAttrs ( _ : v : v . import && v . path != null ) cfg . realms ) ;
342
352
343
353
# Generate the command to export realms.
You can’t perform that action at this time.
0 commit comments