Skip to content
Snippets Groups Projects
Commit 55c0e7be authored by Daniel Schulte's avatar Daniel Schulte
Browse files

Script for patching lipsticks

parent 70faed08
No related branches found
No related tags found
No related merge requests found
#/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment