Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
osak
materials
Commits
55c0e7be
Commit
55c0e7be
authored
Apr 03, 2014
by
Daniel Schulte
Browse files
Script for patching lipsticks
parent
70faed08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Installer-USB-Stick/patch_stick.sh
0 → 100755
View file @
55c0e7be
#/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment