File: get-config-dir-file

package info (click to toggle)
fai 6.5.4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,076 kB
  • sloc: sh: 6,720; perl: 5,626; makefile: 138
file content (11 lines) | stat: -rwxr-xr-x 284 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

### BEGIN SUBROUTINE INFO
# Provides-Var:
# Requires-Var:    $FAI_CONFIG_SRC
# Suggests-Var:
# Short-Description: get $FAI by local path
### END SUBROUTINE INFO

localpath=$(expr match "$FAI_CONFIG_SRC" '.*://\(/.*\)')
echo "Using local path $localpath as config space."