Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core24/current/usr/libexec/core/ |
Upload File : |
#!/bin/sh # Usage: # get-mode entry-name /path/to/modeenv # # get-mode will look for entry-name in modeenv files and return 0 if # found, 1 if not found. It will print the value to stdout. set -eu if [ "$#" -gt 2 ]; then echo "Too many arguments" 1>&2 exit 1 fi if [ "$#" -lt 1 ]; then echo "Expected a name as argument" 1>&2 exit 1 fi name="${1}" modeenv="${2:-/var/lib/snapd/modeenv}" while read -r line; do case "${line}" in "${name}"=*) echo "${line#*=}" exit 0 ;; *) ;; esac done <"${modeenv}" exit 1