shell

Tar balls and Drupal updating

Everytime I untar a new drupal install (tar xzf drupal.x.x.x.tgz) it unpacks it in a drupalX directory. If I want to install in the root of my web server I have to untar in one location, then copy everything under drupalx/ to the root directory.
So I did a bit of Googling and found the command switch I need.
strip
as in tar xzf drupal.x.x.x.tgz --strip=1
this can be done right in the root directory :)
Simple but effective.

Subscribe to RSS - shell