rebasing .git
This commit is contained in:
+4
-3
@@ -4,7 +4,8 @@ USR_DIR=${1:-"no_dir"}
|
||||
[[ $USR_DIR == "no_dir" ]] && \
|
||||
echo "usage $0 usr_dir" && \
|
||||
exit 1
|
||||
|
||||
USR_DIR=$(realpath $USR_DIR)
|
||||
cp -l -p -r $USR_DIR/* /
|
||||
# cannot hardlink (invaliv cross device)
|
||||
ln -s $USR_DIR/home/.* /home
|
||||
|
||||
#uses ssymbolic link otherwise crossdevice troubles
|
||||
cp -s -p -r -f -t / $USR_DIR/.
|
||||
|
||||
Reference in New Issue
Block a user