-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpirate-get
executable file
·38 lines (33 loc) · 1.16 KB
/
pirate-get
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
#
# ############################################################################
# Project: scripts (none)
# File...: /Users/fgm/binx/pirate-get
# Created: Sunday, 2025/01/19 - 11:17:55
# Author.: fbnmtz, ([email protected])
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Sunday, 2025/01/19 - 11:39:02
# Modified By..: @fbnmtz, ([email protected])
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.0.1.20
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# >
# ############################################################################
# HISTORY:
#
# shellcheck disable=SC1090,SC2154
source "$xSHELL_INIT"
use args
_app_=pirate-get
xrequirements "$_app_|docker"
_app_function(){
docker run -ti --rm -v "$HOME"/popcorn:/usr/src/app/ jaume/docker-pirate-get "$@"
}
if builtin $_app_ 2> /dev/null; then
echo "$_app_ binary"
$_app_ "$@"
else
echo "$_app_ function (docker)"
_app_function "$@"
fi