aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/mkdir
blob: b31eb0b9fee37546ee5d5f6ce75084ff18e466b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# Create folders.
#

# Load functions
LIB="`dirname $0`/../functions"
source "$LIB" || exit 1

# Aditional parameters
CWD="`pwd`"

# Avoid leading slash
shift
ARGS="`echo "$*" | sed -e "s|^/*||"`"

# Run mkdir command
cd "$KEYDIR/$RELATIVE_PATH" && mkdir -p $ARGS
cd "$CWD"