Skip to content

Instantly share code, notes, and snippets.

View michiomochi's full-sized avatar
🤗
Happy!

Michikawa Masayoshi michiomochi

🤗
Happy!
View GitHub Profile
@michiomochi
michiomochi / userpic.sh
Created July 7, 2023 16:24 — forked from palmerc/userpic.sh
Updating a user's picture from a script
#!/bin/bash
set -e
declare -x USERNAME="$1"
declare -x USERPIC="$2"
declare -r DSIMPORT_CMD="/usr/bin/dsimport"
declare -r ID_CMD="/usr/bin/id"