blob: 732a296a81962e25c1aceca920b67eb711c29307 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
set -xeuf
cd $(dirname $(readlink -f $0))
if [ "$1" == "c" ];then
echo ./ass create "$2" && export ASS_CREATED="$2"
if [ "${ASS_OWNER-}" ]; then
$0 s "owner" "${ASS_OWNER}"
fi
if [ "${ASS_LOCATION-}" ]; then
$0 s "location" "${ASS_LOCATION}"
fi
else if [ "$1" == "s" ]
then
echo ./ass set "${ASS_CREATED}" "${2}" "${3}"
else
echo "you are made of stupid!"
cat $0
exit 23
fi
fi
|