.git broken, restart
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user