Commit 55c0e7be authored by Daniel Schulte's avatar Daniel Schulte
Browse files

Script for patching lipsticks

parent 70faed08
#/bin/bash
set -e
DEVICE=$(blkid -t LABEL=MULTIBOOT -odevice)
MPOINT=/mnt
if [ ! $EUID -eq 0 ]; then
echo "You are not root..."
exit 1
fi
if [ -z $DEVICE ]; then
echo "No stick found..."
exit 1
fi
mount "$DEVICE" "$MPOINT"
pushd "$MPOINT" > /dev/null
git checkout master
git pull
popd > /dev/null
umount "$MPOINT"
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment