Added error checking to utils appdata symlink function
This commit is contained in:
parent
0a04adba42
commit
6a00de291e
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#--------[ Cache Clear ]--------#
|
#--------[ Cache Clear ]--------#
|
||||||
_fake_utils_linux_appdata () {
|
_fake_utils_linux_appdata () {
|
||||||
if [ ! -L $1 ]; then
|
if [ ! -L $1 ] && [ -d $1 ]; then
|
||||||
_fake_layout_message "Move and link" "$1 -> /data/$2"
|
_fake_layout_message "Move and link" "$1 -> /data/$2"
|
||||||
mv -v $1 /data/$2
|
mv -v $1 /data/$2
|
||||||
ln -sfv /data/$2 $1
|
ln -sfv /data/$2 $1
|
||||||
|
|
Loading…
Reference in a new issue