Print a path in a format that fstab can accept (mangle non-supported characters):
$ printf "%s\n" '#include "libmount/libmount.h"' 'int main(int argc, char *argv[]) { puts(mnt_mangle(argv[1])); }' | gcc -xc - -lmount -o mnt_mangle
Usage
Print a path in a format that fstab can accept (mangle non-supported characters):
$ printf "%s\n" '#include "libmount/libmount.h"' 'int main(int argc, char *argv[]) { puts(mnt_mangle(argv[1])); }' | gcc -xc - -lmount -o mnt_mangle
Usage
#!/bin/sh | |
# Point TMPDIR to a directory with enough space since installations need enough space for | |
# the downloaded file plus the install size | |
TMPDIR=~/tmp/unity.tmp | |
UNITYHUB=/usr/local/opt/UnityHub.AppImage | |
if [ ! -d "$TMPDIR" ]; then | |
mkdir -p "$TMPDIR" |