File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed
rootfs/container/usr/local/bin/.eleven Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1- go 1.25.7
1+ go 1.25
22module github.com/11notes/docker-util
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ FN=$( echo " ${1} " | tr ' [:upper:]' ' [:lower:]' )
3+ shift
4+
5+ case " ${FN} " in
6+ " nametoversion" )
7+ NAME=$( echo " ${1} " | tr ' [:upper:]' ' [:lower:]' )
8+ case ${NAME} in
9+ " duke" ) echo " 15" ;;
10+ " forky" ) echo " 14" ;;
11+ " trixie" ) echo " 13" ;;
12+ " bookworm" ) echo " 12" ;;
13+ " bullseye" ) echo " 11" ;;
14+ esac
15+ ;;
16+
17+
18+ " versiontoname" )
19+ VERSION=$( echo " ${1} " | awk -F ' .' ' {print $1}' )
20+ case ${VERSION} in
21+ " 15" ) echo " duke" ;;
22+ " 14" ) echo " forky" ;;
23+ " 13" ) echo " trixie" ;;
24+ " 12" ) echo " bookworm" ;;
25+ " 11" ) echo " bullseye" ;;
26+ esac
27+ ;;
28+
29+ * )
30+ eleven log warning " function ${FN} does not exist"
31+ exit 1
32+ ;;
33+ esac
You can’t perform that action at this time.
0 commit comments