blob: 77afd783da201dca12b590836df741d8c935a137 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# Check if user supplied any arguments
if [ $# -eq 0 ]; then
# No arguments, so we expect config dir: ~/wg++
if [ ! -d ~/wg++ ]; then
cp -R /usr/share/wg++ ~
if [ -d ~/wg++ ]; then
echo "Configuration folder '~/wg++' created!"
else
echo "Failed to create configuration folder '~/wg++'!"
fi
fi
mono /opt/wg++/bin/WebGrab+Plus.exe ~/wg++/
else
# User provides different directory:
mono /opt/wg++/bin/WebGrab+Plus.exe "$@"
fi
|